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