*BSD News Article 81706


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.Hawaii.Edu!news.uoregon.edu!arclight.uoregon.edu!news.sprintlink.net!news-peer.sprintlink.net!howland.erols.net!EU.net!main.Germany.EU.net!Dortmund.Germany.EU.net!Materna.DE!root
From: Juergen.Schuck@Materna.DE
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: assembler warning: GOT relocation burb
Date: Mon, 28 Oct 1996 18:23:22 +0100
Organization: Dr. Materna GmbH, Dortmund, Germany
Lines: 34
Message-ID: <3274EC0A.6C70@Materna.DE>
NNTP-Posting-Host: tuennes.materna.de
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 2.0 (Win16; I)

hi there, i'm running freebsd-2.1-release. the assembler shipped with
the distribution ist gas v1.92.3.

when compiling the gnu c++ library v2.7.2 (using gcc v2.7.2 compiled 
previously) i encountered the warning shown in the subject. it happened 
during compilation of the file libg++-2.7.2/libstdc++/exceptioni.cc.

i was trying to build a shared version of the library (the static one was 
ok). the command line was 

gcc <options> -O3 <more options> -fpic -O0 -fhandle-exceptions -frtti 
<options>.

the message of the assembler was
"assembler warning: GOT relocation burb: symbol "___EXCEPTION_TABLE__" 
should be global".

without "-O0 -fhandle-exceptions -frtti" everything is ok. the objectfile 
produced lead the linkeditor into a core-dump. the command issued was ld 
-x -r exceptioni.o.

can anyone explain this behaviour? are there solutions available (newer 
version of gas, ...)? why do i have to remove local symbols by invoking 
ld -x -r before building the shared library?

thank you all in advance.
-- 

Juergen Schuck

                  Dr. Materna GmbH, 44141 Dortmund, Voszkuhle 37
                           Tel/Fax +49 231 5599 191/100
      Juergen.Schuck@Materna.DE - S=Schuck G=Juergen P=MATERNA A=UMI-DE 
C=DE