[lld] r193451 - [ELF] Implement .{init,fini}_array ordering.

Shankar Easwaran shankare at codeaurora.org
Sat Oct 26 19:24:33 PDT 2013


On 10/26/2013 3:53 PM, Michael Spencer wrote:
> On Sat, Oct 26, 2013 at 1:00 PM, Shankar Easwaran
> <shankare at codeaurora.org>wrote:
>
>> Hi Michael,
>>
>>
>> On 10/25/2013 6:59 PM, Michael J. Spencer wrote:
>>
>>> Author: mspencer
>>> Date: Fri Oct 25 18:59:06 2013
>>> New Revision: 193451
>>>
>>> URL: http://llvm.org/viewvc/llvm-**project?rev=193451&view=rev<http://llvm.org/viewvc/llvm-project?rev=193451&view=rev>
>>> Log:
>>> [ELF] Implement .{init,fini}_array ordering.
>>>
>> Could this be implemented in the ELFLayout, and having a seperate
>> InitArray/FiniArray section chunk ?. As we are only fixing the order within
>> these sections right ?
>>
>> Thoughts ?
>
> It could. But I don't see the point in adding that complexity.
The only reason I thought was the pass would iterate through all atoms 
compared to the ELF Layout only looking at atoms that belong to the 
sections .init_array/.fini_array.

Additionally do all the ELF subtargets treat the init_array by priority 
? the ELF ABI document seems to be outdated on this.

Was looking at this bug, and it looks like Linker supports sorting 
.ctors.NNNN too, not sure if its still relavant ? Any ideas ?

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46770

Thanks

Shankar Easwaran



More information about the llvm-commits mailing list