flat binary
Hi,
I've my asm code in AT&T syntax a want to get flat binary file. But gas seems cant produce flat file and nasm dont understand at&t syntax.
Sure I can use some syntax convertor a use nasm, but that's not what I want. Is there any suitable tool which understand at&t and produce flat binary?
Best regards, Elfi
ps: please CC me, I'm not it list
Quoted 9 lines · Mirek Dobsicek
Hi,
I've my asm code in AT&T syntax a want to get flat binary file. But gas seems cant produce flat file and nasm dont understand at&t syntax.
Sure I can use some syntax convertor a use nasm, but that's not what I want. Is there any suitable tool which understand at&t and produce flat binary?
'objcopy' should do, the program is part of the 'binutils' package.
hp
Signature · 1 line
Linux,Assembly,Forth: http://www.lxhp.in-berlin.de/index-lx.shtml
Quoted 1 line
Quoted 1 line
xxxx -at- lxhp -dot- in-berlin -dot- de <<
You should use GAS to generate an object file, then LD to generate the flat binary file:
$ as -o example.o example.s
$ ld -Ttext 0x0 -s --oformat binary -o example.bin example.o--Emanuele
Quoted 18 lines · Mirek Dobsicek
Hi,
I've my asm code in AT&T syntax a want to get flat binary file. But gas seems cant produce flat file and nasm dont understand at&t syntax.
Sure I can use some syntax convertor a use nasm, but that's not what I want. Is there any suitable tool which understand at&t and produce flat binary?
Best regards, Elfi
ps: please CC me, I'm not it list
-
To unsubscribe from this list: send the line "unsubscribe linux-assembly" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html