From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Lance Taylor To: frichard@bbn.com Cc: egcs@cygnus.com Subject: Re: GNU ld on x86 Solaris Date: Wed, 05 Nov 1997 20:48:00 -0000 Message-id: <199711060448.XAA21311@subrogation.cygnus.com> References: <199711060153.UAA28306@bbn.com> X-SW-Source: 1997-11/msg00202.html Date: Wed, 5 Nov 1997 20:53:50 -0500 From: Fred Richardson 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