Skip to content

Commit

Permalink
avoid missing libc_start_main relocation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
thehajime committed Jan 10, 2018
1 parent 39dcb2f commit acb411e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions model/libc-dce.cc
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ typedef void (*func_t)(...);

extern "C" {

extern int __libc_start_main(int *(main) (int, char * *, char * *), int argc, char * * ubp_av, void (*init) (void), void (*fini) (void), void (*rtld_fini) (void), void (* stack_end));

void libc_dce (struct Libc **libc)
{
*libc = new Libc;
Expand Down
1 change: 1 addition & 0 deletions model/libc-ns3.h
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,7 @@ DCE_WITH_ALIAS2 (dlopen, __dlopen)
DCE (dlsym)

NATIVE (dl_iterate_phdr)
NATIVE (__libc_start_main)

#undef DCE
#undef DCET
Expand Down

0 comments on commit acb411e

Please sign in to comment.