public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* arm-symbian symbol versioning
@ 2005-02-17 18:47 Paul Brook
  0 siblings, 0 replies; only message in thread
From: Paul Brook @ 2005-02-17 18:47 UTC (permalink / raw)
  To: binutils

[-- Attachment #1: Type: text/plain, Size: 530 bytes --]

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.

[-- Attachment #2: patch.symbian_verhack --]
[-- Type: text/x-diff, Size: 648 bytes --]

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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-02-17 13:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-17 18:47 arm-symbian symbol versioning Paul Brook

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).