This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Weak symbol support on powerpc-ibm-aix5.2.0.0 (binutils 2.15)
- From: Michael Klein <michael dot klein at fazi dot de>
- To: binutils at sources dot redhat dot com
- Date: Thu, 15 Jul 2004 17:49:45 +0200 (CEST)
- Subject: Weak symbol support on powerpc-ibm-aix5.2.0.0 (binutils 2.15)
Hi all!
Are weak symbols unsupported on AIX 5.2 or is this a gas/bfd bug?
weak.a:
----8<------8<-----8<-----8<-----8<---
.csect .data[RW]
.globl g
g: .long 0
.weak w
w: .long 0
----8<------8<-----8<-----8<-----8<---
$ as -uppc32 weak.a -o weak.o ; nm -l weak.o # IBM as
g D 0
w D* 4
weak.a f -
$ gas -mppc32 weak.a -o weak.o ; nm -l weak.o # GNU as
fake f -
g D 0
-> where is 'w'?
$ gas -v
GNU assembler version 2.15 () using BFD version 2.15
Regards,
--
Michael Klein
#exclude <windows.h>