This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: 3.2 PATCH: Major Solaris 2 configuration cleanup
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Rainer Orth <ro at TechFak dot Uni-Bielefeld dot DE>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 28 May 2002 18:53:32 -0400
- Subject: Re: 3.2 PATCH: Major Solaris 2 configuration cleanup
- References: <15602.28134.723197.769609@xayide.TechFak.Uni-Bielefeld.DE>
On Mon, May 27, 2002 at 07:33:26PM +0200, Rainer Orth wrote:
> This is an updated version of
>
> http://gcc.gnu.org/ml/gcc-patches/2001-05/msg01977.html
>
> moving Solaris 2 specific target configuration to a common config/sol2.h
> file. Most of the comments in that message still apply.
>
> Two additional notes are in order:
>
> * I added -Di386 to the i386 CPP_PREDEFINES since Sun cc (WorkShop 6 Update
> 2) does so as well.
>
> * Although the native i386 assembler handles -K PIC the same way sparc as
> does, I've disabled it for now since that gives me many warnings from as:
>
> e.g., compiling a minimal hello.c, I get:
>
> "hello.s", line 3 : Warning: R_386_32 relocation is used for symbol ".text"
> "hello.s", line 4 : Warning: R_386_32 relocation is used for symbol ".text"
> "hello.s", line 62 : Warning: R_386_32 relocation is used for symbol "main"
> "hello.s", line 101 : Warning: R_386_32 relocation is used for symbol ".text"
>
> where the lines are
>
> .stabs "/homes/ro/src/c/test/",100,0,0,.Ltext0
> .stabs "hello.c",100,0,0,.Ltext0
>
> .stabs "main:F(0,1)",36,0,5,main
>
> .stabs "",100,0,0,.Letext
>
> It looks like those stabs are incorrect: the `Stabs Interface' document
> distributed with the Sun compilers (found in
> /opt/SUNWspro/READMEs/stabs.ps) states that the value field of the N_SO
> (0x64, 100) stabs is 0, likewise the Address field of the N_FUN (0x24,
> 36) stabs for ELF objects.
... which makes for a great deal of annoyance in GDB. Please don't
change these stabs unless the GDB folks decide to globally enable the
workarounds for this behavior.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer