RFC: Add -z text-start-addr=ADDR to ELF linker
Ian Lance Taylor
iant@google.com
Tue Jan 13 06:41:00 GMT 2009
"H.J. Lu" <hjl.tools@gmail.com> writes:
> On Mon, Jan 12, 2009 at 09:39:16PM -0800, Ian Lance Taylor wrote:
>> "H.J. Lu" <hongjiu.lu@intel.com> writes:
>>
>> > Sometimes, we want to load the ELF executable in a different address from
>> > the default. This patch adds -z text-start-addr=ADDR to ELF linker. If it
>> > is acceptable, I will submit a complete patch with some testcases.
>>
>> We already support -Ttext=ADDR and SEGMENT_START. Does this add
>> anything to that approach?
>>
>
> Do they cover ELF headers?
I don't see any reason that they could not cover ELF headers. See
ld/scripttempl/armbpabi.sc.
Ian
More information about the Binutils
mailing list