[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[microblaze-uclinux] Problem with using -elf2flt



Hello,
    when I use "mb-gcc -Wl,-elf2flt -o helloworld helloworld.c" to compile my simple helloworld program, if fails and outputs the following errors.
   All I want to know is how to get a flat file without using ucfront tools? Is there anyway to use -Wl,-elf2flt with mb-gcc alone or use mb-elf2flt to get a flt file?

/home/zz/xilinx/EDK/gnu/microblaze/lin/bin/../lib/gcc/microblaze/3.4.1/../../../../microblaze/bin/ld.real: warning: no memory region specified for section `.vectors.reset'
/home/zz/xilinx/EDK/gnu/microblaze/lin/bin/../lib/gcc/microblaze/3.4.1/../../../../microblaze/bin/ld.real: warning: no memory region specified for section `.vectors.sw_exception'
/home/zz/xilinx/EDK/gnu/microblaze/lin/bin/../lib/gcc/microblaze/3.4.1/../../../../microblaze/bin/ld.real: warning: no memory region specified for section `.vectors.interrupt'
/home/zz/xilinx/EDK/gnu/microblaze/lin/bin/../lib/gcc/microblaze/3.4.1/../../../../microblaze/bin/ld.real: warning: no memory region specified for section `.vectors.hw_exception'
/home/zz/xilinx/EDK/gnu/microblaze/lin/bin/../lib/gcc/microblaze/3.4.1/../../../../microblaze/bin/ld.real: section .vectors.reset [00000000 -> 00000007] overlaps section .text [00000000 -> 0000debf]
/home/zz/xilinx/EDK/gnu/microblaze/lin/bin/../lib/gcc/microblaze/3.4.1/../../../../microblaze/bin/ld.real: section .vectors.sw_exception [00000008 -> 0000000f] overlaps section .text [00000000 -> 0000debf]
/home/zz/xilinx/EDK/gnu/microblaze/lin/bin/../lib/gcc/microblaze/3.4.1/../../../../microblaze/bin/ld.real: section .vectors.interrupt [00000010 -> 00000017] overlaps section .text [00000000 -> 0000debf]
/home/zz/xilinx/EDK/gnu/microblaze/lin/bin/../lib/gcc/microblaze/3.4.1/../../../../microblaze/bin/ld.real: section .vectors.hw_exception [00000018 -> 0000001f] overlaps section .text [00000000 -> 0000debf]
helloworld.elf2flt: In function `_start1':
helloworld.elf2flt(.text+0x10): undefined reference to `_stack'
helloworld.elf2flt: In function `_crtinit':
helloworld.elf2flt(.text+0xc4): undefined reference to `__sbss_start'
helloworld.elf2flt(.text+0xcc): undefined reference to `__sbss_end'
helloworld.elf2flt(.text+0xf4): undefined reference to `__bss_end'
helloworld.elf2flt: In function `write':
helloworld.elf2flt(.text+0x8f84): undefined reference to `outbyte'
helloworld.elf2flt(.text+0x8fa8): undefined reference to `outbyte'
helloworld.elf2flt: In function `read':
helloworld.elf2flt(.text+0x918c): undefined reference to `inbyte'
helloworld.elf2flt: In function `sbrk':
helloworld.elf2flt(.text+0x9214): undefined reference to `_heap'
helloworld.elf2flt(.text+0x9228): undefined reference to `_heap_end'
collect2: ld returned 1 exit status

--
Zhang Zhong
Email:vxzhong@xxxxxxxxx
          zhangzhong@xxxxxxxxxxxxxx