This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: devtab layout (was: .previous directive)


On Sun, Jul 06, 2003 at 12:32:08PM +0000, Michael Anburaj wrote:

> The only difference I found was in the ecos?s .ld files (mips_mips32.ld) 
>
>    "KEEP(*( SORT (.ecos.table.*))) ;"
>
> Is the line responsible for this magic (placing the
> .ecos.table.devtab.begin about .ecos.table.devtab.data &
> .ecos.table.devtab.finish below .ecos.table.devtab.data)? Or some
> else?

Bingo.  The linker sorts the ".ecos.table.*" sections and places them in
the .data section of the target.  The names of the subsections were
cleverly chosen so that in alphabetical (SORT, remember) order, they
would be ordered:

	.ecos.table.devtab.begin
	.ecos.table.devtab.data
	.ecos.table.devtab.extra
	.ecos.table.devtab.finish

Pretty tricky.

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]