* [uml-devel] Problems with linking of 2.4.19-5um (elf-init.o symbols missing during final link)
@ 2003-09-06 14:32 Jason Johnson
2003-09-13 18:08 ` BlaisorBlade
0 siblings, 1 reply; 2+ messages in thread
From: Jason Johnson @ 2003-09-06 14:32 UTC (permalink / raw)
To: user-mode-linux-devel; +Cc: jsjohn2000
I have been experimenting with user mode linux and
when I tried compiling against the 2.4.19 kernel I
received the following link error
gcc -Wl,-T,arch/um/link.ld -Wl,--wrap,malloc
-Wl,--wrap,free -Wl,--wrap,calloc \
-o linux -static arch/um/main.o vmlinux.o
-L/usr/lib -lutil
/usr/lib/libc.a(elf-init.o)(.text+0x2): In function
`__libc_csu_init':
: undefined reference to `__preinit_array_end'
/usr/lib/libc.a(elf-init.o)(.text+0x9): In function
`__libc_csu_init':
: undefined reference to `__preinit_array_start'
/usr/lib/libc.a(elf-init.o)(.text+0x23): In function
`__libc_csu_init':
: undefined reference to `__preinit_array_start'
/usr/lib/libc.a(elf-init.o)(.text+0x34): In function
`__libc_csu_init':
: undefined reference to `__init_array_end'
/usr/lib/libc.a(elf-init.o)(.text+0x39): In function
`__libc_csu_init':
: undefined reference to `__init_array_start'
/usr/lib/libc.a(elf-init.o)(.text+0x49): In function
`__libc_csu_init':
: undefined reference to `__init_array_start'
/usr/lib/libc.a(elf-init.o)(.text+0x61): In function
`__libc_csu_fini':
: undefined reference to `__fini_array_end'
/usr/lib/libc.a(elf-init.o)(.text+0x67): In function
`__libc_csu_fini':
: undefined reference to `__fini_array_start'
/usr/lib/libc.a(elf-init.o)(.text+0x84): In function
`__libc_csu_fini':
: undefined reference to `__fini_array_start'
collect2: ld returned 1 exit status
make: *** [linux] Error 1
I applied the 2.4.19-5um patch to my kernel source
tree. Does anyone have any ideas on how to fix this
problem.
I tried compiling a new version of glibc, but the when
I did a objdump -t libc.a symbols mentioned above do
not appear.
Thanks for the help.
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [uml-devel] Problems with linking of 2.4.19-5um (elf-init.o symbols missing during final link)
2003-09-06 14:32 [uml-devel] Problems with linking of 2.4.19-5um (elf-init.o symbols missing during final link) Jason Johnson
@ 2003-09-13 18:08 ` BlaisorBlade
0 siblings, 0 replies; 2+ messages in thread
From: BlaisorBlade @ 2003-09-13 18:08 UTC (permalink / raw)
To: user-mode-linux-devel; +Cc: jsjohn2000
Alle 16:32, sabato 6 settembre 2003, Jason Johnson ha scritto:
> I have been experimenting with user mode linux and
> when I tried compiling against the 2.4.19 kernel I
> received the following link error
Hmmm, it seems like libc itself is wrong. Maybe you new libc is just fine but
those symbols simply don't have to appear. Since you recompiled libc(I hope
glibc), you should test it with a simpler program, using static linking.
Maybe you changed something in the libc config that broke this.
If, instead, libc is good, check below for UML-related ideas.
First: what version of glibc have you got? If it's much older/newer than UML,
it could be a problem(I remember that glibc 2.3 gave problems, fixed in
2.3.1, with some special programs with a little stack... I'm not sure at all,
but could be the case).
Second: try to recheck the build procedure, after a make mrproper(save your
.config before)
(use
make menuconfig ARCH=um
make linux ARCH=um
don't forgot the ARCH=um part!)
Third: it could be a bug, maybe, but you are using a very old version! Also,
you should at all be using something newer! 2.4.19 is very old and has
serious bugs, too(Google ptrace 2.4.20 Linux to find news about it).
Download the needed patches from kernel.org(it won't be 30 M, much less) to go
at least to 2.4.21(which fixes that bug), even for your host kernel, and the
related patch from the UML site.
If you still need help, specify your distro, your libc/gcc/binutils version...
and so on. And try to build a static program as I said above!
--
cat <<EOSIGN
Paolo Giarrusso, aka Blaisorblade
Linux Kernel 2.4.21/2.6.0-test on an i686; Linux registered user n. 292729
EOSIGN
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-09-13 18:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-06 14:32 [uml-devel] Problems with linking of 2.4.19-5um (elf-init.o symbols missing during final link) Jason Johnson
2003-09-13 18:08 ` BlaisorBlade
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox