This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

arm-linux-ld problems


Ok, I have a port of ucos-ii for ARM, that was written to compile
using arm-elf-gcc.  However, I need to compile it with arm-linux-gcc,
because simplescalar-arm can't handle files compiled with arm-elf for
some reason.  After re-writing some of the assembly files, I can get
everything to compile with arm-linux, but when I go to link I get the
following errors:

arm-linux-gcc -Wall -g -nostartfiles -mthumb-interwork -fPIC -O2
-static -fdata-sections -ffunction-sections -Wl,-T eb40angel.ld
ucos_ii.o test.o os_cpu_c.o irq_timer.o os_cpu_a.o at91start.o  -o
ucos.elf
/data/lart/cross/arm-linux/bin/ld: address 0x200003c of ucos.elf
section .vectors is not within region ram
/data/lart/cross/arm-linux/bin/ld: address 0x2032d58 of ucos.elf
section .text is not within region ram
/data/lart/cross/arm-linux/bin/ld: address 0x20393e2 of ucos.elf
section .rodata is not within region ram
/data/lart/cross/arm-linux/bin/ld: warning: no memory region specified
for section `__libc_subinit'
/data/lart/cross/arm-linux/bin/ld: warning: no memory region specified
for section `__libc_subfreeres'
/data/lart/cross/arm-linux/bin/ld: warning: no memory region specified
for section `__libc_atexit'
/data/lart/cross/arm-linux/bin/ld: warning: no memory region specified
for section `.rel.got'
/data/lart/cross/arm-linux/bin/ld: address 0x1088 of ucos.elf section
.data is not within region ram
/data/lart/cross/arm-linux/bin/ld: warning: no memory region specified
for section `.got.plt'
/data/lart/cross/arm-linux/bin/ld: warning: no memory region specified
for section `.got'
/data/lart/cross/arm-linux/bin/ld: address 0x51b8 of ucos.elf section
.bss is not within region ram
/data/lart/cross/arm-linux/bin/ld: section .got.plt [00000030 ->
0000003b] overlaps section .data [00000030 -> 00001087]
/data/lart/cross/arm-linux/bin/ld: section .got [0000003c -> 000002a7]
overlaps section .data [00000030 -> 00001087]
collect2: ld returned 1 exit status
make: *** [ucos] Error 1


I'm using arm-linux-gcc 2.95.2 on suse linux 8.0

SO.  Does anyone have any suggestions on how to get this to link?  
Are the differences between arm-elf and arm-linux documented anywhere?
Does anyone have a list of steps required for converting programs from one
toolchain to the other?

my brain is fried right now, any suggestions are appreciated.
Thanks,

Chris K


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]