This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] PR binutils/16496: Display symbol version when dumping dynrelocs
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Andreas Schwab <schwab at linux-m68k dot org>
- Cc: Binutils <binutils at sourceware dot org>
- Date: Tue, 25 Nov 2014 06:36:55 -0800
- Subject: Re: [PATCH] PR binutils/16496: Display symbol version when dumping dynrelocs
- Authentication-results: sourceware.org; auth=none
- References: <20140124191614 dot GA20867 at intel dot com> <CAMe9rOpjBrZqs7Z7+c_DzXhT2KsgZOR1qDfkEfxKj1H9PcrVrg at mail dot gmail dot com> <87mwidkdvh dot fsf at igel dot home> <CAMe9rOobh1s2O6BqHf=VKmwr76qBoFUfCXM1tx+jTD3a7f_+3w at mail dot gmail dot com>
On Thu, Jan 30, 2014 at 4:41 AM, H.J. Lu <hjl.tools@gmail.com> wrote:
> On Thu, Jan 30, 2014 at 1:39 AM, Andreas Schwab <schwab@linux-m68k.org> wrote:
>> Since it breaks building glibc, perhaps there is another way to display
>
> It is the most consistent way to display symbol version. But It did cause:
>
> make[4]: *** [/export/build/gnu/glibc/build-x86_64-linux/elf/check-localplt.out]
> Error 1
> Extra PLT reference: libc.so: realloc@@GLIBC_2.2.5
> Extra PLT reference: libc.so: malloc@@GLIBC_2.2.5
> Extra PLT reference: libc.so: memalign@@GLIBC_2.2.5
> Extra PLT reference: libc.so: calloc@@GLIBC_2.2.5
> Extra PLT reference: libc.so: free@@GLIBC_2.2.5
> Extra PLT reference: libm.so: matherr@@GLIBC_2.2.5
> Missing required PLT reference: libc.so: realloc
> Missing required PLT reference: libc.so: malloc
> Missing required PLT reference: libc.so: calloc
> Missing required PLT reference: libc.so: memalign
> Missing required PLT reference: libc.so: free
> Missing required PLT reference: libm.so: matherr
>
> It is easy to fix by stripping @@GLIBC_2.2.5 from readelf -r output.
>
>> the symbol version?
A very old patch:
https://sourceware.org/ml/binutils/2014-01/msg00310.html
My binutils PLT optimization commit:
https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=dd7e64d45b317128f5fe813a8da0b13b4ad046ae
will require updating elf/check-localplt test in glibc. I am checking in this
so that elf/check-localplt will be updated for both.
--
H.J.