Unknown symbols
Building 2.6.9 with vsyscall, I got problems with unknown symbols, e.g:
ext3: Unknown symbol vsyscall_end
ext3: Unknown symbol vsyscall_ehdr
for (almost) all modules, my current config uses.
The same problem exists for "end_iomem", but in the modules xfs.ko and ntfs.ko only.
I tried to fix that for the vsyscall_xxx in arch/um/os-Linux/elf_aux.c. I inserted EXPORT_SYMBOLS for them, but it failed to compile, because it's not possible to include "linux/module.h" in this user-code module.
What should I do to fix this? Move the variables to a kernel-source-file? Or moving the EXPORTs only? To what file do you think that it should be moved?
For end_iomem inserting a EXPORT_SYMBOLS in arch/um/kernel/um_arch.c seems to be enough.
Bodo
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 9 lines · Bodo Stroesser
Building 2.6.9 with vsyscall, I got problems with unknown symbols, e.g:
ext3: Unknown symbol
vsyscall_end
ext3: Unknown symbolvsyscall_ehdrfor (almost) all modules, my current config uses.
The same problem exists for "end_iomem", but in the modules xfs.ko and ntfs.ko only.
Quoted 7 lines
I tried to fix that for the
vsyscall_xxxinarch/um/os-Linux/elf_aux.c. I insertedEXPORT_SYMBOLSfor them, but it failed to compile, because it's not possible to include "linux/module.h" in this user-code module.What should I do to fix this? Move the variables to a kernel-source-file? Or moving the EXPORTs only? To what file do you think that it should be moved?
The EXPORT_SYMBOL can be in any kernel space file, if you have declared the function before.
Since the functions are in arch/um/os-Linux, they could go in arch/um/os-Linux/user_syms.c.
In general, if you have a kernelspace file related to the userspace file, you put the EXPORT_SYMBOLS in the kernel-space file.
Quoted 2 lines
For
end_iomeminserting aEXPORT_SYMBOLSinarch/um/kernel/um_arch.cseems to be enough.
Yes, I guess. Send the resulting patch to Jeff - as a separate one.
Signature · 13 lines
Paolo Giarrusso, aka Blaisorblade Linux registered user n. 292729 ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ User-mode-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 4 lines · BlaisorBlade
Quoted 2 lines
For
end_iomeminserting aEXPORT_SYMBOLSinarch/um/kernel/um_arch.cseems to be enough.Yes, I guess. Send the resulting patch to Jeff - as a separate one.
Those are userspace things, so they go in user_syms.c - that already has the export crap copied into it.
Jeff
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 5 lines · Jeff Dike
Quoted 3 lines · BlaisorBlade
Quoted 2 lines
For
end_iomeminserting aEXPORT_SYMBOLSinarch/um/kernel/um_arch.cseems to be enough.
Quoted 7 lines
Quoted 1 line
Yes, I guess. Send the resulting patch to Jeff - as a separate one.
Those are userspace things, so they go in
user_syms.c- that already has the export crap copied into it.Jeff
OK. Here is the first patch. It handles end_iomem only. Since end_iomem is located in arch_um.c, I prefered to put the EXPORT_SYMBOL into ksyms.c.
I hope, you agree.
The EXPORTs for vsyscall_* are included in a separate patch. It's mailed in the vsyscall-thread, because it includes some improvement for vsyscall also.
---
arch/um/kernel/ksyms.c +1 -0
@@ -48,6 +48,7 @@ EXPORT_SYMBOL(to_virt);EXPORT_SYMBOL (mode_tt);EXPORT_SYMBOL (handle_page_fault);EXPORT_SYMBOL (find_iomem); +EXPORT_SYMBOL (end_iomem);#ifdef CONFIG_MODE_TT EXPORT_SYMBOL (strncpy_from_user_tt);
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel