linux-mips
[Top] [All Lists]

Re: BFD: Warning: Writing section `.text' to huge (ie negative) file off

To: "Thiemo Seufer" <ths@networkno.de>
Subject: Re: BFD: Warning: Writing section `.text' to huge (ie negative) file offset 0xa1ffff10
From: zhuzhenhua <zzh.hust@gmail.com>
Date: Thu, 1 Jun 2006 18:56:31 +0800
Cc: linux-mips <linux-mips@linux-mips.org>
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=qtmchspno369kX0KM5JZTIxkDFXbZ3BlkeDPZJwigF9bQPCNIJ71U8nixeY4wWDqD3Icf1PEFEdZdaMZT6PeyJrVXceMD9WR5o+pBPMEtvH2FtiTzZKm+pA6y2R9sAZM9WHawpOgEvz+9TrDevXqX/5I+qO19b7ykTvsCv0HDEk=
In-reply-to: <20060601092413.GL1717@networkno.de>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <50c9a2250605312319v7480f2el36d9c0a052c85d5f@mail.gmail.com> <20060601092413.GL1717@networkno.de>
Sender: linux-mips-bounce@linux-mips.org
On 6/1/06, Thiemo Seufer <ths@networkno.de> wrote:
zhuzhenhua wrote:
> i have write a code to link at 0xa2000000(uncached address)
> but when link i get the error as
> "BFD: Warning: Writing section `.text' to huge (ie negative) file
> offset 0xa1ffff10.
> BFD: Warning: Writing section `.data' to huge (ie negative) file
> offset 0xa200b050.
> BFD: Warning: Writing section `.reginfo' to huge (ie negative) file
> offset 0xa200c980.
> mipsel-linux-objcopy: /root/project/brec_flash/release/brec_flash.bin:
> File truncated
> make: *** [brec_flash] Error 1"
>
> my link.xn as follow:
>
> OUTPUT_ARCH(mips)
> ENTRY(brec_flash_entry)
> SECTIONS
> {
> .text 0xa2000000 :

Use

 . = 0xa2000000;
 .text :

instead. "info ld" explains the subtle difference.


Thiemo


do you mean use
. = 0xa2000000;
.text :
to replace
.text 0xa2000000 :
?
i modify as that, and it still get the same message

thanks

zhuzhenhua

<Prev in Thread] Current Thread [Next in Thread>