i'm testing a tool called UROBOROS(https://github.com/s3team/uroboros) which used for reassemble(reassemble means converting binary back to integrated assembly code which is able to be assembled to binary again).
I've got an assembly code file(final.s) from UROBOROS. But when i was trying to reassemble final.s to binary via gcc, error occured as follow.
# gcc final.s -lm -ldl -lrt -lpthread -lcrypt -m64
final.s: Assembler messages:
final.s:159: Error: junk `@GLIBC_2.2.5' after expression
the insturction above is from UROBOROS. And related assembly code near is followed.
BB_23:
notify:
mov stdin@GLIBC_2.2.5,%rax
push %r14
mov %edx,%r14d
push %r13
push %r12
mov %rdi,%r12
push %rbp
push %rbx
mov %rsi,%r13
mov (%rax),%rdi
callq fileno
mov %eax,%edi
callq isatty
test %eax,%eax
jne S_0x4048F8
Note that assembly file from UROBOROS has more sections than common mannal assembly file.
Not very familiar with assembly code. Thanks for your help!