This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [gold commit] Fix handling of __ehdr_start
- From: Cary Coutant <ccoutant at google dot com>
- To: Cary Coutant <ccoutant at google dot com>, Binutils <binutils at sourceware dot org>
- Date: Thu, 29 May 2014 12:02:51 -0700
- Subject: Re: [gold commit] Fix handling of __ehdr_start
- Authentication-results: sourceware.org; auth=none
- References: <20140502233010 dot 1722219406F7 at ccoutant-macbookpro2 dot roam dot corp dot google dot com> <20140520062228 dot GP5162 at bubble dot grove dot modra dot org> <CAHACq4qR+-wg0aNOAcEgiBqb7W4zg+O3-NX3idc+nae86_Eegg at mail dot gmail dot com> <20140528015527 dot GF6679 at bubble dot grove dot modra dot org> <20140528072606 dot GG6679 at bubble dot grove dot modra dot org>
>> 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