This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
arm-symbian symbol versioning
- From: Paul Brook <paul at codesourcery dot com>
- To: binutils at sources dot redhat dot com
- Date: Thu, 17 Feb 2005 13:23:45 +0000
- Subject: arm-symbian symbol versioning
- Organization: CodeSourcery
The arm-symbianelf linker script contains a version block to hide some symbols
linker defined symbols. This causes problems when linking shared libraries
because these are treated as anonymous versions.
The attached patch works around this by giving the version block a dummy name.
All the symbols it contains are local, so the actual name is irelevant.
Tested with cross to arm-none-symbianelf and applied.
Paul
2005-02-17 Paul Brook <paul@codesourcery.com>
* scripttempl/armbpabi.sc: Add dummy name to version block.
Index: ld/scripttempl/armbpabi.sc
===================================================================
RCS file: /var/cvsroot/src-cvs/src/ld/scripttempl/armbpabi.sc,v
retrieving revision 1.5
diff -u -p -r1.5 armbpabi.sc
--- ld/scripttempl/armbpabi.sc 10 Feb 2005 05:49:21 -0000 1.5
+++ ld/scripttempl/armbpabi.sc 10 Feb 2005 17:54:19 -0000
@@ -142,7 +142,9 @@ ${RELOCATING- /* For some reason, the So
VERSION
{
- {
+ /* Give these a dummy version to work around linker lameness.
+ The name used shouldn't matter as these are all local symbols. */
+ __GNU {
local:
Image\$\$ER_RO\$\$Base;
Image\$\$ER_RO\$\$Limit;