HexHive / retrowrite

RetroWrite -- Retrofitting compiler passes through binary rewriting
Other
655 stars 78 forks source link

can't build my binary with gcc #4

Closed ghost closed 4 years ago

ghost commented 4 years ago

Do you have any clue why is this happening? ... [*] Instrumented: 3048 locations gcc binary-basan.s -lasan -o binary-basan
/usr/bin/ld: /tmp/ccyZLb4w.o: in function asan.module_ctor': (.text+0x4b7f2): undefined reference to__asan_init_v4' collect2: error: ld returned 1 exit status

sushant94 commented 4 years ago

Hey @alexandermitop, it seems like your version of gcc compiler is different from the ones we used for testing. I'll make a proper fix by detecting this while setting up retrowrite.

In the meanwhile, you can fix this by replacing __asan_init_v4 with just __asan_init in the assembly file.