On Tue, Dec 06, 2005 at 04:00:37PM +0000, Paul Edwards wrote:
> [EMAIL PROTECTED] ~/samples/weaksyms $ readelf -s libweaklib.a |grep Foo
> 7: 00000000 10 FUNC WEAK DEFAULT 1 Foo
> 8: 00000000 10 FUNC GLOBAL DEFAULT 1 PFoo
> [EMAIL PROTECTED] ~/samples/weaksyms $ readelf -s libmylib.a |grep Foo
> 7: 00000000 79 FUNC GLOBAL DEFAULT 1 Foo
> 8: 00000000 0 NOTYPE GLOBAL DEFAULT UND PFoo
> [EMAIL PROTECTED] ~/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 <[EMAIL PROTECTED]>
* elflink.c (_bfd_elf_merge_symbol): Skip weak redefinition
regardless of strength of previous definition.
--
Alan Modra
IBM OzLabs - Linux Technology Centre
_______________________________________________
bug-binutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-binutils