This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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: New linker option --dsbt_index for C6x; c6x-uclinux fixes


On 09/29/2010 02:20 PM, Bernd Schmidt wrote:
> This adds a new linker option --dsbt_index, which is required when
> generating DSBT binaries (similar to flat binaries with ID shared
> libraries) for c6x-uclinux.  It also changes the linker to handle the
> corresponding relocation.  The code to add a new option is adapted from
> elf32mcore.sh.
> 
> There are some other changes here which are necessary for c6x-uclinux
> support.  TEXT_START_ADDR has to be defined to 0, otherwise the kernel
> can't load the generated binaries.  The __c6xabi_DSBT_BASE symbol is
> moved before the GOT rather than after it.  GENERATE_SHLIB_SCRIPT is
> set.  Finally, the stack and heap sections, which are required for
> simulator testing, are removed for c6x-uclinux.

New version which addresses comments made by Joseph.  I forgot to add
documentation to the manual.  Also, c6x-uclinux wasn't a recognized
target yet; fixed by patching config.bfd and testsuite/lib/ld-lib.exp.

Ok?


Bernd

Attachment: dsbtindex-mainline2.diff
Description: Text document


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