This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: RFC: Add -z text-start-addr=ADDR to ELF linker
"H.J. Lu" <hjl.tools@gmail.com> writes:
> On Tue, Jan 13, 2009 at 9:50 AM, Daniel Jacobowitz <drow@false.org> wrote:
>> On Tue, Jan 13, 2009 at 09:34:16AM -0800, Ian Lance Taylor wrote:
>>> > 2. ELF segment has no names. The name of
>>> > the ELF segment doesn't mean anything.
>>>
>>> I'm not sure what you mean. Of course ELF segments have no names.
>>> I'm suggesting that -Ttext should set the start of the text segment.
>>> The current behaviour, of setting the address of the .text section, is
>>> useless for ELF.
>>
>> Completely agreed, this would be useful...
>>
>
> Some applications may depend the current behaviour as shown
> in linker testcases.
I am very skeptical that any real ELF code uses -Ttext without also
using a custom linker script.
Ian