[PATCH] Add a versioned field to elf_link_hash_entry

H.J. Lu hjl.tools@gmail.com
Mon Aug 10 14:59:00 GMT 2015


On Sun, Aug 9, 2015 at 7:56 PM, Alan Modra <amodra@gmail.com> wrote:
> On Fri, Aug 07, 2015 at 05:36:25AM -0700, H.J. Lu wrote:
>> +  /* Symbol version information:
>> +     0: unknown
>> +     1: unversioned
>> +     2: versioned
>> +   */
>> +  unsigned int versioned : 2;
>>    /* Symbol should be marked as hidden in the version information.  */
>>    unsigned int hidden : 1;
>
> Seems to me it would be better to use an enum, and ENUM_BITFIELD.
> Also, I believe "hidden" could be merged into the new field, giving it
> four states: unknown, unversioned, versioned, versioned_hidden.

This is what I checked in.

Thanks.

-- 
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Replace-hidden-with-versioned-in-elf_link_hash_entry.patch
Type: text/x-patch
Size: 9518 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20150810/6ae28f35/attachment.bin>


More information about the Binutils mailing list