How to know if a symbol extracted from symbol table is DSO load or elf symbol?

48 views
Skip to first unread message

Iti Shree

unread,
Jun 7, 2021, 12:16:09 PM6/7/21
to golang-nuts
Hello everyone,

I am trying to understand  debug/elf package especially method Symbols() . I was wondering if there's any way to determine whether symbol name or address of symbol is closest to elf symbol or DSO load address. I am relatively new to the package so sorry for any silly questions.

Ian Lance Taylor

unread,
Jun 7, 2021, 1:29:46 PM6/7/21
to Iti Shree, golang-nuts
On Mon, Jun 7, 2021 at 9:16 AM Iti Shree <itishr...@gmail.com> wrote:
>
> I am trying to understand debug/elf package especially method Symbols() . I was wondering if there's any way to determine whether symbol name or address of symbol is closest to elf symbol or DSO load address. I am relatively new to the package so sorry for any silly questions.

The debug/elf Symbol structure is the ELF symbol, the same information
you see from "nm" or "readelf -s".

Ian
Reply all
Reply to author
Forward
0 new messages