Skip to contentSkip to conversation

About the symbols in binary file.

OOT nilesh 2 participants 3 messages Jan 20, 2012

lore
Share & tools
lore

nilesh

author
#0 lore raw

Hi,

The question is not completely related to kernel. But I came across similar question when debugging in kernel.

I tried dissecting the SSL library using 'nm' command. It is showing the list of symbols along with some generic addresses (to be used when relocating).
Also there are some characters 't', 'T', 'U'. I guess these correspond to properties of symbols - like static, extern etc.

Could someone please point out what exactly each character corresponds to? I mean looking at the character, we should be able to denote if it's a static symbol or inline etc. Do we have any such mapping?

00000499 t tls1_PRF
00000019 t tls1_P_hash
00000000 T tls1_alert_code
00000937 T tls1_cert_verify_mac
00000ffa T tls1_change_cipher_state
00000a22 T tls1_enc
000006fc T tls1_final_finish_mac
0000063d T tls1_generate_master_secret
00001734 T tls1_mac
00000d2a T tls1_setup_key_block

Signature · 2 lines
Thanks,
Nilesh
#1 lore raw
Quoted 11 lines · nilesh

Hi,

The question is not completely related to kernel. But I came across similar question when debugging in kernel.

I tried dissecting the SSL library using 'nm' command. It is showing the list of symbols along with some generic addresses (to be used when relocating).
Also there are some characters 't', 'T', 'U'. I guess these correspond to properties of symbols - like static, extern etc.

Quoted 3 lines

Could someone please point out what exactly each character corresponds to? I mean looking at the character, we should be able to denote if it's a static symbol or inline etc. Do we have any such mapping?

man nm :)

thanks,
Daniel.

author
#2 lore raw
Quoted 12 lines · Daniel Baluta
Quoted 11 lines · nilesh

Hi,

The question is not completely related to kernel. But I came across similar question when debugging in kernel.

I tried dissecting the SSL library using 'nm' command. It is showing the list of symbols along with some generic addresses (to be used when relocating).
Also there are some characters 't', 'T', 'U'. I guess these correspond to properties of symbols - like static, extern etc.

Quoted 5 lines
Quoted 3 lines

Could someone please point out what exactly each character corresponds to? I mean looking at the character, we should be able to denote if it's a static symbol or inline etc. Do we have any such mapping?

man nm :)

Missed that..Sorry for being lazy to check before posting the dumb query. :)

Quoted 3 lines

thanks,
Daniel.

Signature · 2 lines
Thanks,
Nilesh