GNU ld on x86 Solaris

Ian Lance Taylor ian@cygnus.com
Wed Nov 5 20:48:00 GMT 1997


   Date: Wed, 5 Nov 1997 20:53:50 -0500
   From: Fred Richardson <frichard@bbn.com>

   I've been tooling around with GNU ld to see if I can get it to work on
   x86 Solaris.

Please send GNU ld bug reports to bug-gnu-utils@prep.ai.mit.edu.  The
egcs list is for discussion of the egcs compiler.  In my opinion,
we're already seeing a few too many random messages.

  I thought this wouldn't be a problem since GNU ld seems
   to work fine on Sparc Solaris.  But I'm getting this message:

       ld.new: foo: Not enough room for program headers (allocated 5, need 6)
       ld.new: final link failed: Bad value

If you can get a map file, that may show the problem.  Otherwise, new
program headers are allocated in map_sections_to_segments in
bfd/elf.c.  You need to figure out why you are getting an extra one.
Five is the typical number: PT_PHDR, PT_INTERP, PT_DYNAMIC, a PT_LOAD
for the text segment, and a PT_LOAD for the data segment.  You are
most likely getting another PT_LOAD for some reason.

Ian



More information about the Gcc mailing list