embedspu symbol tweak

Alan Modra amodra@bigpond.net.au
Thu Mar 1 06:14:00 GMT 2007
When linking any object into a shared library, it is necessary to
specify at least one of type and size of any exported global symbol.

	* embedspu.sh: Set type and size of global program handle symbol.

Index: binutils/embedspu.sh
===================================================================
RCS file: /cvs/src/src/binutils/embedspu.sh,v
retrieving revision 1.2
diff -u -p -r1.2 embedspu.sh
--- binutils/embedspu.sh	13 Feb 2007 07:33:32 -0000	1.2
+++ binutils/embedspu.sh	1 Mar 2007 06:09:12 -0000
@@ -166,6 +166,7 @@ $8 != "_EAR_" { \
 
  .section .data,"aw",@progbits
  .globl ${SYMBOL}
+ .type ${SYMBOL}, @object
 # fill in a struct spe_program_handle
 #ifdef _LP64
  .p2align 3
@@ -181,6 +182,7 @@ ${SYMBOL}:
  .int __speelf__
  .int __spetoe__
 #endif
+ .size ${SYMBOL}, . - ${SYMBOL}
 EOF
 }
 

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list