This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
embedspu symbol tweak
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: binutils at sourceware dot org
- Date: Thu, 1 Mar 2007 16:44:13 +1030
- Subject: 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