local symbols appearing in objdump/nm output
nm and objdump both output local symbols from vmlinux. this doesn't happen on x86 (how about other architectures?) let me give an example:
101a2700 T ext2_get_group_desc101a27b8 T ext2_free_blocks101a2824 t .L773101a28ec t .L873101a2970 t .L887101a2b48 t .L844101a2bd8 t .L888101a2be0 t grab_block
on x86, that is:
c018b950 T ext2_get_group_descc018ba20 t read_block_bitmapc018bac0 T ext2_free_blocksc018be10 t grab_block
i have insufficient toolchain-fu to figure out what's going on and what needs to be fixed, but these local symbols make CONFIG_KALLSYMS basically useless. Let me show you:
Kernel addresses on the stack:
[<10127b8c>] .L1041+0x64/0xa8 [<10105f6c>] show_trace+0x8c/0xc0 [<10127a30>] .L1018+0x0/0x38 [<10105df0>] dump_stack+0x10/0x1c [<101588e4>] __find_get_block+0x50/0x84 [<101589d0>] __getblk+0x20/0x30 [<10158a08>] .L1623+0xc/0x18 [<101a605c>] ext2_get_branch+0x70/0x13c [<101a6528>] ext2_get_block+0x88/0x408 [<1023b8bc>] .L1006+0x10/0x34 [<10176a14>] .L1121+0x84/0xb0 [<101393f4>] .L1477+0x44/0x74 [<10176e38>] .L1155+0x8/0x34 [<1013da40>] .L1106+0x34/0x74 [<1013fbe8>] read_pages+0x58/0xe4
Signature · 3 lines
"It's not Hollywood. War is real, war is primarily not about defeat or victory, it is about death. I've seen thousands and thousands of dead bodies. Do you think I want to have an academic debate on this subject?" -- Robert Fisk
Quoted 11 lines
nm and objdump both output local symbols from vmlinux. this doesn't happen on x86 (how about other architectures?) let me give an example:
101a2700Text2_get_group_desc101a27b8Text2_free_blocks101a2824t .L773101a28ect .L873101a2970t .L887101a2b48t .L844101a2bd8t .L888101a2be0tgrab_block
This would appear to be a problem with the specific toolset (gas) that you are using. For example, there are no .L[0-9] labels in the .o files of my gcc builds, but I see them in traps.o, for example. In this case, traps.o was built with the 64-bit toolset (probably, debian).
Dave
Signature · 2 lines
J. David Anglin [email protected] National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
Quoted 5 lines
This would appear to be a problem with the specific toolset (gas) that you are using. For example, there are no .L[0-9] labels in the .o files of my gcc builds, but I see them in traps.o, for example. In this case, traps.o was built with the 64-bit toolset (probably, debian).
yup, i don't see this when building kernels with the latest toolchain. willy is building with older cross-toolchain, so it's probably just a matter of producing some more up to date tools and putting up on parisc-linux.org ...
randolph
Signature · 3 lines
Randolph Chung Debian GNU/Linux Developer, hppa/ia64 ports http://www.tausq.org/