This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

embedspu symbol tweak


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]