FAQ SearchLogin
Tuxera Home
View unanswered posts | View active topics It is currently Fri May 14, 2021 07:21



Post new topic Reply to topic  [ 1 post ] 
link error on Eclipse IDE 
Author Message

Joined: Wed Nov 23, 2011 09:11
Posts: 35
Post link error on Eclipse IDE
Hi,

I encounter a link error when porting ntfs-3g project to our platform using Eclipse IDE(build ID: 20100617-1415).
It seems like some library function of ntfs-3g project is not contained in our libc library, but I can not figure out which function is according to the error information below.
I also used google to find what the cause maybe, and some webpages say that the link option should be "-shared" instead of "-Wl -shared". But the link option in my project is "--oformat elf32-tradlittlemips -nostdlib".

Anyone has any suggestion about the error?
Thanks in advance.

************************below shows the link error info**********************
...
Finished building target: xxx_cmd.elf

make --no-print-directory post-build
post process after elf has been generated
D:/normal_work/ntfs-target/xxxx/config_test/kernel_test/xxx_cmd/xxx_cmd\post_build.sh xxx_cmd.elf
../../../../../lib/lib_xxx\libc.a(__uClibc_main.o): In function `__uClibc_fini':
__uClibc_main.c:(.text+0x0): undefined reference to `__fini_array_start'
__uClibc_main.c:(.text+0x8): undefined reference to `__fini_array_start'
__uClibc_main.c:(.text+0x4): undefined reference to `__fini_array_end'
__uClibc_main.c:(.text+0xc): undefined reference to `__fini_array_end'
../../../../../lib/lib_xxx\libc.a(__uClibc_main.o): In function `__uClibc_main':
__uClibc_main.c:(.text+0x2e4): undefined reference to `__preinit_array_start'
__uClibc_main.c:(.text+0x2e8): undefined reference to `__preinit_array_start'
__uClibc_main.c:(.text+0x2f4): undefined reference to `__preinit_array_end'
__uClibc_main.c:(.text+0x2fc): undefined reference to `__preinit_array_end'
__uClibc_main.c:(.text+0x344): undefined reference to `__init_array_start'
__uClibc_main.c:(.text+0x338): undefined reference to `__init_array_start'
__uClibc_main.c:(.text+0x348): undefined reference to `__init_array_start'
__uClibc_main.c:(.text+0x34c): undefined reference to `__init_array_end'
__uClibc_main.c:(.text+0x350): undefined reference to `__init_array_end'
C:\Program Files\xxxx\xxx IDE\msys\1.0\local\mips-windows\bin\mipsel-linux-ld.exe: xxx_cmd.elf: hidden symbol `__preinit_array_start' isn't defined
C:\Program Files\xxxx\xxx IDE\msys\1.0\local\mips-windows\bin\mipsel-linux-ld.exe: final link failed: Nonrepresentable section on output
C:\Program Files\xxxx\xxx IDE\msys\1.0\local\mips-windows\bin\mipsel-linux-objcopy.exe: 'xxx_cmd.elf': No such file
C:\Program Files\xxxx\xxx IDE\msys\1.0\local\mips-windows\bin\mipsel-linux-objdump.exe: 'xxx_cmd.elf': No such file
anchor: Open source file [xxx.bin] fail!
Anchor: generate img [new.bin] successfully!
Anchor: generate file [xxx.img] successfully!
****************************************************************************

Best regards,
Ryan


Fri Mar 09, 2012 09:23
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Original forum style by Vjacheslav Trushkin.