From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19836 invoked by alias); 17 Feb 2005 13:24:47 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 18870 invoked from network); 17 Feb 2005 13:23:48 -0000 Received: from unknown (HELO mail.codesourcery.com) (65.74.133.9) by sourceware.org with SMTP; 17 Feb 2005 13:23:48 -0000 Received: (qmail 7128 invoked from network); 17 Feb 2005 13:23:47 -0000 Received: from localhost (HELO wren.home) (paul@127.0.0.1) by mail.codesourcery.com with SMTP; 17 Feb 2005 13:23:47 -0000 From: Paul Brook Organization: CodeSourcery To: binutils@sources.redhat.com Subject: arm-symbian symbol versioning User-Agent: KMail/1.7.2 MIME-Version: 1.0 Date: Thu, 17 Feb 2005 18:47:00 -0000 Content-Type: Multipart/Mixed; boundary="Boundary-00=_hrJFCACe9qGKab9" Message-Id: <200502171323.45992.paul@codesourcery.com> X-SW-Source: 2005-02/txt/msg00400.txt.bz2 --Boundary-00=_hrJFCACe9qGKab9 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Content-length: 530 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 * scripttempl/armbpabi.sc: Add dummy name to version block. --Boundary-00=_hrJFCACe9qGKab9 Content-Type: text/x-diff; charset="us-ascii"; name="patch.symbian_verhack" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch.symbian_verhack" Content-length: 648 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; --Boundary-00=_hrJFCACe9qGKab9--