[PATCH] [Layout] Assign ordinals in resolution order

Shankar Easwaran shankare at codeaurora.org
Tue Oct 8 22:48:17 PDT 2013


On 10/9/2013 12:44 AM, Shankar Easwaran wrote:
> On 10/9/2013 12:40 AM, kledzik at apple.com wrote:
>>    It looks to me like the ordinals are assigned to archive members 
>> as the members are used.  This will result in unstable output because 
>> the lazy loading nature of archives loads the members in some what 
>> chaotic way (small changes to what if referenced by initial .o files 
>> can radically change the load order of members).
> ELF needs the symbols to appear in resolution order.
Sorry I meant the Gnu linker preserves the order in which symbols are 
resolved.

Thanks

Shankar Easwaran

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by the Linux Foundation




More information about the llvm-commits mailing list