Weak symbol support on powerpc-ibm-aix5.2.0.0 (binutils 2.15)

Nick Clifton nickc@redhat.com
Mon Jul 26 15:54:00 GMT 2004


Hi Michael,

> Are weak symbols unsupported on AIX 5.2 or is this a gas/bfd bug?

It is a bug...

> 	.csect 	.data[RW]
> 
> 	.globl 	g
> g:	.long 	0
> 
> 	.weak 	w
> w:	.long 	0

Please try the attached patch and let me know how you get on with it.

Cheers
   Nick

gas/ChangeLog
2004-07-26  Nick Clifton  <nickc@redhat.com>

	* config/obj-coff.c (coff_frob_symbol): Skip weak symbols when
	setting punt before calling SA_SET_SYM_ENDNDX for XCOFF format.
	* config/tc-ppc.c (ppc_frob_symbol): Treat weak symbols like
	external symbols.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: aix-weak-coff.patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20040726/7f0531c9/attachment.ksh>


More information about the Binutils mailing list