bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

broken linker scripts on hppa64


From: Georgas, James
Subject: broken linker scripts on hppa64
Date: Fri, 20 Jun 2003 14:52:30 -0400

host = hppa64-hp-hpux11.00
binutils = 2.14, GNU ld
gcc = 3.3

I'm having trouble linking objects with profiling support built in.

When using the following command line:

        gcc -pg -save-temps hello.c

I get the following error:

        /usr/local/bin/ld: a.out: Not enough room for program headers
(allocated 5, need 6)

I tried to redefine SIZEOF_HEADERS to a constant (1024, actually), in the
link scripts, and the program linked, but it failed to load because of a
missing symbol: __text_start in /lib/pa20_64/libgprof.1
I believe this is a separate issue, though.

Here is the tool output with the -v flag on the compiler and the linker:

Reading specs from /usr/local/lib/gcc-lib/hppa64-hp-hpux11.00/3.3/specs
Configured with: ../../src/gcc-3.3/configure --with-gnu-as
--with-as=/usr/local/bin/as --with-gnu-ld --with-ld=/usr/local/bin/ld
Thread model: single
gcc version 3.3
 /usr/local/lib/gcc-lib/hppa64-hp-hpux11.00/3.3/cc1 -E -quiet -v
-D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=0 sizes.c sizes.i
ignoring nonexistent directory "NONE/include"
ignoring nonexistent directory "/usr/local/hppa64-hp-hpux11.00/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/local/lib/gcc-lib/hppa64-hp-hpux11.00/3.3/include
 /usr/include
End of search list.
 /usr/local/lib/gcc-lib/hppa64-hp-hpux11.00/3.3/cc1 -fpreprocessed sizes.i
-quiet -dumpbase sizes.c -auxbase sizes -version -p -o sizes.s
GNU C version 3.3 (hppa64-hp-hpux11.00)
        compiled by GNU C version 3.3.
GGC heuristics: --param ggc-min-expand=65 --param ggc-min-heapsize=65536
 /usr/local/bin/as -o sizes.o sizes.s
 /usr/local/lib/gcc-lib/hppa64-hp-hpux11.00/3.3/collect2 -E -u main
/usr/ccs/lib/pa20_64/crt0.o
/usr/local/lib/gcc-lib/hppa64-hp-hpux11.00/3.3/crtbegin.o
-L/usr/local/lib/gcc-lib/hppa64-hp-hpux11.00/3.3 -L/usr/ccs/bin
-L/usr/ccs/lib/pa20_64
-L/usr/local/lib/gcc-lib/hppa64-hp-hpux11.00/3.3/../../.. sizes.o -v -lgcc
-L/usr/lib/pa20_64/libp/ -lgprof -lc /usr/lib/pa20_64/milli.a -lgcc
/usr/local/lib/gcc-lib/hppa64-hp-hpux11.00/3.3/crtend.o
collect2 version 3.3 (hppa)
/usr/local/bin/ld -E -u main /usr/ccs/lib/pa20_64/crt0.o
/usr/local/lib/gcc-lib/hppa64-hp-hpux11.00/3.3/crtbegin.o
-L/usr/local/lib/gcc-lib/hppa64-hp-hpux11.00/3.3 -L/usr/ccs/bin
-L/usr/ccs/lib/pa20_64
-L/usr/local/lib/gcc-lib/hppa64-hp-hpux11.00/3.3/../../.. sizes.o -v -lgcc
-L/usr/lib/pa20_64/libp/ -lgprof -lc /usr/lib/pa20_64/milli.a -lgcc
/usr/local/lib/gcc-lib/hppa64-hp-hpux11.00/3.3/crtend.o
/usr/local/bin/ld: a.out: Not enough room for program headers (allocated 5,
need 6)
/usr/local/bin/ld: final link failed: Bad value
GNU ld version 2.14 20030612
collect2: ld returned 1 exit status





reply via email to

[Prev in Thread] Current Thread [Next in Thread]