public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Weird LD message...
@ 2001-11-01  0:16 Rudy Gingles
  0 siblings, 0 replies; only message in thread
From: Rudy Gingles @ 2001-11-01  0:16 UTC (permalink / raw)
  To: gcc-help

Hi all. I have a project I'm working on, and I'm trying to compile it into
an elf format binary without startup code (it's an OS kernel). I've done
this just fine with DJGPP, but under Linux I get a weird error during the
link stage. Compile goes fine, then I run ld to link them all:

ld -o <...many files...> -Ttext 100000 -lc -lgcc

and I get this message:

Not enough room for program headers (allocated 5, need 6)
Final link failed: Bad value

I've never seen this message before, I can't make any sense of it. I assume
program headers refer to the elf structure, but what is causing it to not
allocate enough? Is there some way for me to tell it how many it needs? I
don't know where to start to get this bug fixed, if anyone has any ideas at
all please let me know! Thanks!

Rudy Gingles



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.292 / Virus Database: 157 - Release Date: 10/26/2001

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-11-11 18:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-01  0:16 Weird LD message Rudy Gingles

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).