[PATCH] D27516: [ELF] - Place ".text" to be first section if -Ttext is used.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 8 06:31:04 PST 2016


>> 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 ?

George.


More information about the llvm-commits mailing list