This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: devtab layout (was: .previous directive)
- From: Billy <billy at DaDaDaDa dot net>
- To: Michael Anburaj <embeddedeng at hotmail dot com>
- Cc: billy at DaDaDaDa dot net, ecos-discuss at sources dot redhat dot com
- Date: Sun, 6 Jul 2003 11:38:39 -0400
- Subject: Re: [ECOS] devtab layout (was: .previous directive)
- References: <Law15-F551s3L2acgMV00026f9a@hotmail.com>
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