Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FC12 libc.so has new EI_OSABI and sym->st_info #248

Closed
derekbruening opened this issue Nov 27, 2014 · 2 comments
Closed

FC12 libc.so has new EI_OSABI and sym->st_info #248

derekbruening opened this issue Nov 27, 2014 · 2 comments

Comments

@derekbruening
Copy link
Contributor

From [email protected] on January 12, 2010 17:42:36

Two issues show up with Fedora Core 12's /lib/libc.so.6:

  1. dr_get_proc_address() returns NULL on strlen

objdump -T /lib/libc.so.6 | grep ' strlen'
00c327b0 g iD .text 00000034 GLIBC_2.0 strlen

The "i" means "a function to be evaluated during reloc processing".
It's ELF_ST_TYPE(sym->st_info) == STT_GNU_IFUNC instead of STT_FUNC.

elf_sym_matches: considering type=2 strrchr
get_proc_address: strrchr => 0x00c32cc0
elf_sym_matches: considering type=2 strchrnul
get_proc_address: strchrnul => 0x00c35450
elf_sym_matches: considering type=10 strlen
get_proc_address: strlen => 0x00000000

  1. ASSERT_CURIOSITY(elf_header.e_ident[EI_OSABI] == ELFOSABI_SYSV)

the e_ident[EI_OSABI} instead has value ELFOSABI_LINUX

Original issue: http://code.google.com/p/dynamorio/issues/detail?id=248

@derekbruening
Copy link
Contributor Author

From [email protected] on January 13, 2010 16:44:04

fixed in r261

Status: Verified

@derekbruening
Copy link
Contributor Author

From [email protected] on February 03, 2010 15:42:25

in r269 :

  • added dr_get_proc_address_ex() to return additional information about
    a module's export, since clients monitoring routines need to know
    whether an export is direct or indirect

so now a client can call the indirect export to get the real export

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant