Skip to contentSkip to conversation

The structure of __ksymtab and __ksymtab_gpl?

DISCUSSION Shu-Ming 2 participants 2 messages Sep 28, 2006

lore
Share & tools
lore

Shu-Ming

author
#0 lore raw

Hi all

What is the the structure of __ksymtab and __ksymtab_gpl ?
I mean that __ksymtab and __ksymtab_gpl are the section headers of ELF format.

And how to index to the __ksymtab_strings section header from __ksymtab & __ksymtab_gpl ?

Thx

#1 lore raw
Quoted 8 lines · Shu-Ming

Hi all

What is the the structure of __ksymtab and __ksymtab_gpl ? I mean that __ksymtab and __ksymtab_gpl are the section headers of ELF format.

And how to index to the __ksymtab_strings section header from __ksymtab & __ksymtab_gpl ?

I suggest you take a deep look at scripts/mod/modpost.c - that should help you. I do not recall the details by heart but modpost.c is a heavy user so it should be rather simple to dechiper it from there.

Sam