s3team / uroboros

Infrastructure for Reassembleable Disassembling and Transformation
192 stars 55 forks source link

Any options for normal AT&T? #13

Open YOURLEGEND opened 2 years ago

YOURLEGEND commented 2 years ago

I'm using the assembly file generated by uroboros. But it seems that the assembly format is unprefixed AT&T. It's not easy for me to edit the assembly files because gcc don't accept assembly codes mixed normal AT&T and unprefixed one.
An example assembly file followed.

.globl S_0x8048310
S_0x8048310:
# note that there is no suffix like 'b','w','l','q' on operators.
# first operand is the source. the second is destination.
xor %ebp,%ebp
pop %esi
mov %esp,%ecx
and $0xFFFFFFF0,%esp
push %eax
push %esp
push %edx
call S_0x8048343
add $_GLOBAL_OFFSET_TABLE_,%ebx
lea S_0x8048690,%eax
push %eax
lea S_0x8048630,%eax
push %eax
push %ecx
push %esi
mov $S_0x8048569,%eax
push main
call __libc_start_main

Any options can generate normal AT&T?