'not enough room for program headers' ???

'not enough room for program headers' ???

Post by Marco Neliss » Sat, 30 Mar 1996 04:00:00



While compiling the latest version of uae (the unix amiga emulator), I
got a strange error-message when linking. It was something similar to:
'not enough room for program headers (allocated 5 needed 6)'
after which the make aborted. I doubt it was a memory problem (with 24 megs
of ram and 16 swap), but have no clue as to what the problem is.
Anybody...?

Marco

 
 
 

'not enough room for program headers' ???

Post by Matt Gisch » Mon, 01 Apr 1996 04:00:00


: While compiling the latest version of uae (the unix amiga emulator), I
: got a strange error-message when linking. It was something similar to:
: 'not enough room for program headers (allocated 5 needed 6)'
: after which the make aborted. I doubt it was a memory problem (with 24 megs
: of ram and 16 swap), but have no clue as to what the problem is.
: Anybody...?

I just had that problem five minutes ago.  I have no idea what's going wrong..
It happened with both the linux-gui, and linux parameters to make.  I'm trying
it out with "make svga" right now..hmm

 
 
 

'not enough room for program headers' ???

Post by Michael Meissn » Tue, 02 Apr 1996 04:00:00



writes:

| While compiling the latest version of uae (the unix amiga emulator), I
| got a strange error-message when linking. It was something similar to:
| 'not enough room for program headers (allocated 5 needed 6)'
| after which the make aborted. I doubt it was a memory problem (with 24 megs
| of ram and 16 swap), but have no clue as to what the problem is.
| Anybody...?

The error is coming from the GNU BFD tools (linker typically).  It means that
in order to create an ELF object, it has to create a number of program headers
to reference each section of memory.  The current released version of the GNU
BFD tools, 'know' how many program headers are needed in calculating file
offsets.  If when it goes to write out the sections, it finds more program
headers than it anticipated, it aborts with the above message.  One easy way to
get this error is to use the -Ttext option.
--
Michael Meissner, Cygnus Support (East Coast)
Suite 105, 48 Grove Street, Somerville, MA 02144, USA