This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: other/4878: gcc 3.0.2 output crashes HP-UX linker
- From: Harri Porten <porten at trolltech dot com>
- To: rodrigc at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
- Date: Mon, 7 Jan 2002 11:19:18 +0100 (CET)
- Subject: Re: other/4878: gcc 3.0.2 output crashes HP-UX linker
On 5 Jan 2002 rodrigc@gcc.gnu.org wrote:
> State-Changed-From-To: open->closed
> State-Changed-By: rodrigc
> State-Changed-When: Fri Jan 4 21:46:00 2002
> State-Changed-Why:
> gcc 3.0 works better with GNU binutils than
> the native utilities on HP:
> http://gcc.gnu.org/install/specific.html#hppa*-hp-hpux*
>
> You are better off using GNU binutils.
I already do. My original report stated that I am using binutils 2.11.2.
Quote from compiling with -v:
/opt/gcc-3.0.2/lib/gcc-lib/hppa1.1-hp-hpux10.20/3.0.2/../../../../hppa1.1-hp-hpux10.20/bin/as
-o /var/tmp/ccppVe6D.o /var/tmp/ccYO5OWi.s
Whereas
/opt/gcc-3.0.2/lib/gcc-lib/hppa1.1-hp-hpux10.20/3.0.2/../../../../hppa1.1-hp-hpux10.20/bin/as
-v results in:
GNU assembler version 2.11.2 (hppa1.1-hp-hpux10.20) using BFD version
2.11.2
I've played around with the assembler output a bit. Seems like gcc is not
outputting some symbols which then make the linker crash. gas does
accept (faulty?) assembler code that is missing symbol definitions (_foo).
The system assembler says "as: error 7403: undefined label - _foo (7403)".
But that's something I rather should report elsewhere.
.SPACE $TEXT$
.SUBSPA $CODE$,ACCESS=0x2c
_FOO
.PROC
.CALLINFO CALLS
.word P%_foo
NOP
.PROCEND
Please reopen this report.
Harri.