From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27813 invoked by alias); 11 Nov 2001 18:50:37 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 27792 invoked from network); 11 Nov 2001 18:50:37 -0000 Received: from unknown (HELO mail.powweb.com) (64.63.125.220) by sourceware.cygnus.com with SMTP; 11 Nov 2001 18:50:37 -0000 Received: from rudyatek (localhost [127.0.0.1]) by mail.powweb.com (Postfix) with ESMTP id 57B60D9134 for ; Sun, 11 Nov 2001 10:50:36 -0800 (PST) Message-ID: <009501c16ae1$e31b2f40$0200000a@rudyatek> From: "Rudy Gingles" To: Subject: Weird LD message... Date: Thu, 01 Nov 2001 00:16:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-SW-Source: 2001-11/txt/msg00000.txt.bz2 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