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

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

Re: broken linker scripts on hppa64


From: Nick Clifton
Subject: Re: broken linker scripts on hppa64
Date: Fri, 04 Jul 2003 16:14:16 +0100
User-agent: Gnus/5.1001 (Gnus v5.10.1) Emacs/21.2 (gnu/linux)

Hi James

> 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.

Actually it sounds like the two problems might be related.  It would
appear that you are having problems with the linker script that you
are using.   This script appears to be incompatible with the
profiling library.  ie it appears that the profiling library is
expecting the linker script to define a symbol called __text_start and
also allocate enough space for the program headers.

You have already found out how to allocate more space for the
headers.  Defining the __text_start symbol should be relatively easy
too.  Take a look at the file ld/scripttempl/hppaelf.sc where it has
these lines:

  .text 0x1000 ${RELOCATING++${TEXT_START_ADDR}}:
  {
    ${RELOCATING+__text_start = .};

Cheers
        Nick
        





reply via email to

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