PATCH: Add -Ttext-segment ADDR to ELF linker

Nick Clifton nickc@redhat.com
Fri Jan 16 10:14:00 GMT 2009


Hi H.J.

> I don't think we should take this risk to potentially break existing
> applications.

Agreed.

> Here is a patch to add a new switch -Ttext-segment.
> I can reuse -Ttext and update linker tests if it is preferred.

> ld/
> 2009-01-13  H.J. Lu  <hongjiu.lu@intel.com>
> 
> 	* lexsup.c (option_values): Add OPTION_TTEXT_SEGMENT.
> 	(ld_options): Add -Ttext-segment.
> 	(parse_args): Handle OPTION_TTEXT_SEGMENT.
> 
> 	* ld.texinfo: Document -Ttext-segment.
> 
> 	* scripttempl/elf.sc (TEXT_START_ADDR): Use SEGMENT_START.
> 	(SHLIB_TEXT_START_ADDR): Likewise.
> 
> ld/testsuite/
> 2009-01-13  H.J. Lu  <hongjiu.lu@intel.com>
> 
> 	* ld-elf/textaddr1.d: New.
> 	* ld-elf/textaddr2.d: Likewise.

Approved - please apply - could you also mention the new option in the 
ld/NEWS file ?

Cheers
   Nick



More information about the Binutils mailing list