bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Wrong symbol length in ELF object


From: Alan Modra
Subject: Re: Wrong symbol length in ELF object
Date: Wed, 7 Dec 2005 14:25:58 +1030
User-agent: Mutt/1.4i

On Tue, Dec 06, 2005 at 04:00:37PM +0000, Paul Edwards wrote:
> address@hidden ~/samples/weaksyms $ readelf -s libweaklib.a |grep Foo
>      7: 00000000    10 FUNC    WEAK   DEFAULT    1 Foo
>      8: 00000000    10 FUNC    GLOBAL DEFAULT    1 PFoo
> address@hidden ~/samples/weaksyms $ readelf -s libmylib.a |grep Foo
>      7: 00000000    79 FUNC    GLOBAL DEFAULT    1 Foo
>      8: 00000000     0 NOTYPE  GLOBAL DEFAULT  UND PFoo
> address@hidden ~/samples/weaksyms $ readelf -s test |grep Foo
>    100: 080483b4    10 FUNC    GLOBAL DEFAULT   12 Foo
>    101: 08048404    10 FUNC    GLOBAL DEFAULT   12 PFoo
> 
> The executable should show the length as 79, shouldn't it?
> 
> Regards,
> Paul
> 
> Btw this happens on all systems I have tried it on: FC4, Gentoo, Suse
> Opteron - let me know if you want any specific versions

It pays to try build binutils CVS.  I think this bug will have been
fixed by 

2005-07-27  Alan Modra  <address@hidden>

        * elflink.c (_bfd_elf_merge_symbol): Skip weak redefinition
        regardless of strength of previous definition.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre




reply via email to

[Prev in Thread] Current Thread [Next in Thread]