* link problem: Writing section `.text' to huge
[not found] <1106861662.22970.ezmlm@gcc.gnu.org>
@ 2005-01-27 21:49 ` Virgil Anuichi
0 siblings, 0 replies; only message in thread
From: Virgil Anuichi @ 2005-01-27 21:49 UTC (permalink / raw)
To: gcc-help
Hi,
I have an idea of gcc cross compilation-linking.
However, I'm new to elf header fromats and gnu
scripts.
Trying to port our code (broadcom MIPS) from an old
version of gcc to a new one got me the following
error:
BFD: Warning: Writing section `.text' to huge (ie
negative) file offset 0xbfbfe640.
BFD: Warning: Writing section `.data' to huge (ie
negative) file offset 0xbfc0e710.
/net/scarebc0/export/viewstore/cheetah_vs1/sb1/broadcom_2004e_341/sparc-sun-solaris2.6/bin/sb1-elf-objcopy:
/vobs/webos/export/ALT-HW_CH_FE-6/usr/bin/spboot_hw.bin:
File truncated
gmake[4]: ***
[/vobs/webos/export/ALT-HW_CH_FE-6/usr/bin/spboot_hw]
Error 1
gmake[3]: *** [common.mod] Error 2
gmake[2]: *** [sibyte.mod] Error 2
Our current script looks like this:
OUTPUT_ARCH(mips)
ENTRY(vec_reset)
SECTIONS
{
. = 0x9FC00000;
.text :
AT ( 0xBFC00000 )
{
_ftext = . ;
*(.init)
eprol = .;
*(.text)
*(.fini)
*(.rodata.*)
_etext = .;
}
.data 0x81E00000 :
AT ( ((ADDR(.text)|0xB0000000) + SIZEOF ( .text )
+ 15) & 0xFFFFFFF0)
{
_gp = ALIGN(16) + 0x8000;
_fdata = . ;
*(.data)
CONSTRUCTORS
*(.sdata)
}
. = ALIGN(16);
_edata = .;
_fbss = .;
.sbss : {
*(.sbss)
*(.scommon)
}
.bss : {
*(.bss)
*(COMMON)
}
. = ALIGN(16);
_end = .;
}
Also, a good link to some tutorial related to gnu
scripts would mean a lot.
Thanks,
Virgil
__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-01-27 21:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <1106861662.22970.ezmlm@gcc.gnu.org>
2005-01-27 21:49 ` link problem: Writing section `.text' to huge Virgil Anuichi
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).