public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Paul Brook <paul@codesourcery.com>
To: binutils@sources.redhat.com
Subject: arm-symbian symbol versioning
Date: Thu, 17 Feb 2005 18:47:00 -0000	[thread overview]
Message-ID: <200502171323.45992.paul@codesourcery.com> (raw)

[-- 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;

                 reply	other threads:[~2005-02-17 13:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200502171323.45992.paul@codesourcery.com \
    --to=paul@codesourcery.com \
    --cc=binutils@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).