I have some NASM files that generally have the structure:
[BITS 64]
[ORG 0x0000000000200000]
start:
...
ret
I'm assembling them like so:
nasm -f bin abc.asm
I'd like to write some of these using GAS instead. Two questions:
What directives should I use in GAS? I've found the '.org' directive but GAS doesn't seem to have a '.bits' directive.
What should I pass to
gccorasto generate a plain binary file? I.e. what the-f binoption does with NASM.