[PATCH] D27516: [ELF] - Place ".text" to be first section if -Ttext is used.
Rafael Avila de Espindola via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 8 12:13:41 PST 2016
George Rimar <grimar at accesssoftek.com> writes:
>>> So both linkers set PT_LOAD address to 0x0. If I do -Ttext=0x30000 for example,
>>> gold and bfd set .text to 0x30080 and 0x30000, but again both set PT_LOAD address to exactly 0x30000.
>>
>>I think bfd sets the section address, gold the segment. We would
>>probably try to do what bfd does.
>>
>>Cheers,
>>Rafael
>
> That was what my https://reviews.llvm.org/D27516 did then.
> It placed .text to be first section if -Ttext was specified and started assigning addresses from it.
> So it has VA == -Ttext value.
>
> What can I improve here ?
Handle the other -Tsection in an uniform way.
Cheers,
Rafael
More information about the llvm-commits
mailing list