This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Weird LD message...
- To: <gcc-help at gcc dot gnu dot org>
- Subject: Weird LD message...
- From: "Rudy Gingles" <rudyatek at dizzyelmer dot com>
- Date: Sun, 11 Nov 2001 10:51:34 -0800
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