This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [gold commit] Fix handling of __ehdr_start


>> Hmm, yes.  I'm seeing this instead:
>>     52: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT  UND __ehdr_start
>>
>> > What platform are you testing on?
>>
>> powerpc64-linux.  I'll see if I can track down the problem when I find
>> some time.
>
> Also happens on x86_64-linux.  I'm surprised you haven't seen it.
> __ehdr_start is STV_HIDDEN, Symbol_table::override_with_special makes
> it forced_local, thus output from Symbol_table::sized_write_symbol
> is STB_LOCAL.

On x86_64 for me:

$ readelf -sW ehdr_start_test_4.o | grep __ehdr_start
    46: 0000000000000000     0 NOTYPE  WEAK   DEFAULT  UND __ehdr_start

$ readelf -sW ehdr_start_test_4 | grep __ehdr_start
    86: 0000000000000000     0 NOTYPE  WEAK   DEFAULT  UND __ehdr_start

You don't have some compiler wrapper that's setting -fvisibility=hidden, do you?

-cary


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]