This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: 3.0 PATCH RFC: Major Solaris 2 configuration cleanup


Paul Eggert writes:

> In that case I guess GCC needs an autoconf test to tell whether the
> linker error is present.  Here's a shell script that should fail if
> the bug is present.  I think this script is architecture independent,
> but I've tested it only on sparc.

Unfortunately, it's not: running it on the only Solaris 8/Intel machine
here I get:

Assembler: 
        "test.s", line 2 : Syntax error
        "test.s", line 5 : Syntax error
        "test.s", line 8 : Syntax error
        "test.s", line 9 : Illegal mnemonic
        "test.s", line 9 : Syntax error
        "test.s", line 9 : Illegal mnemonic
ld: fatal: file test.o: open failed: No such file or directory

I know nothing about i386 assembly, so someone else should better check
this :-)

Here's what I've found on sparc:

The Sun Bug Id 4136253, R_SPARC_32 genereated when R_SPARC_UA32 should be
generated, claims: Integrated in Releases: 5.0dev.

The relocation types indicated there might very well indicate that this is
a sparc-only problem, but we'd better make certain.

I've been able to reproduce the problem running different assembler
binaries with the Solaris 8 ld:

Solaris 2.6 FCS as reports:

	WorkShop Compilers 4.X dev 18 Sep 1996

Patch 108908-02 (SunOS 5.6: Patch for assembler) as reports:

	Sun WorkShop 6 2000/08/22 Compiler Common 6.0 Patch 108908-02

Solaris 7 FCS as reports:

	WorkShop Compilers 5.0 Alpha 03/27/98 Build	

Solaris 7 Patch 107058-01 (SunOS 5.7: Patch for assembler) as reports:

	WorkShop Compilers 5.0 98/12/21

Solaris 8 FCS as reports:

	Sun WorkShop 6 99/08/18

With Solaris 2.6 FCS and S7 FCS as (and S8 ld), I get:

ld: fatal: relocation error: R_SPARC_32: file test.o: symbol <unknown>: offset 0xff1803bd is non-aligned

while Patches 108908-02 (2.6), 107058-01 (7) and S8 FCS as are ok.

Solaris 2.5.1 is broken as well, even with the latest Patch 103801-07
(SunOS 5.5.1: Patch for make, sccs, as).

So we can certainly turn this LINKER_DOES_NOT_WORK_WITH_DWARF2 into an
autoconf test and ditch the various sol2 sld config files.  This seems like
something we don't want to touch for 3.0, so I'll include this when I
continue testing my Solaris 2 config rewrite for 3.1.

	Rainer

-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University

Email: ro@TechFak.Uni-Bielefeld.DE


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]