Skip to contentSkip to conversation

local symbols appearing in objdump/nm output

parisc-linux Matthew Wilcox 3 participants 3 messages Feb 12, 2003

lore
Share & tools
lore
#0 lore raw

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_desc
101a27b8 T ext2_free_blocks
101a2824 t .L773
101a28ec t .L873
101a2970 t .L887
101a2b48 t .L844
101a2bd8 t .L888
101a2be0 t grab_block

on x86, that is:

c018b950 T ext2_get_group_desc
c018ba20 t read_block_bitmap
c018bac0 T ext2_free_blocks
c018be10 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
#1 lore raw
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:

101a2700 T ext2_get_group_desc
101a27b8 T ext2_free_blocks
101a2824 t .L773
101a28ec t .L873
101a2970 t .L887
101a2b48 t .L844
101a2bd8 t .L888
101a2be0 t grab_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)
#2 lore raw
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/