You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
retrowrite print no issue when runned on binary compiled with gcc but when I try to assemble the generated assembly with gcc I get this error:
/usr/bin/ld:hello.asm: file format not recognized; treating as linker script
/usr/bin/ld:hello.asm:1: syntax error
collect2: error: ld returned 1 exit status
And compile it with gcc: gcc -O0 -ggdb -Wall -Wpedantic -Wextra -fPIC -fPIE -pie hello.c -o hello
then ./retrowrite hello hello.asm gcc hello.asm -o hello_instrumented => error
note that clang hello.asm -o hello_instrumented seems to work on some files
The text was updated successfully, but these errors were encountered:
Description
retrowrite print no issue when runned on binary compiled with gcc but when I try to assemble the generated assembly with gcc I get this error:
Environment:
OS: 5.14.21-2-MANJARO x86_64 GNU/Linux
GCC: gcc (GCC) 11.2.0
clang:13.0.1
retrowrite at commit: 7c230bc
I tried with a simple hello world program:
And compile it with gcc:
gcc -O0 -ggdb -Wall -Wpedantic -Wextra -fPIC -fPIE -pie hello.c -o hello
then
./retrowrite hello hello.asm
gcc hello.asm -o hello_instrumented
=> errornote that
clang hello.asm -o hello_instrumented
seems to work on some filesThe text was updated successfully, but these errors were encountered: