linux-assembly.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* flat binary
@ 2003-10-23 15:37 Mirek Dobsicek
  2003-10-23 18:05 ` willy meier
  2003-10-24 12:47 ` Emanuele Altieri
  0 siblings, 2 replies; 3+ messages in thread
From: Mirek Dobsicek @ 2003-10-23 15:37 UTC (permalink / raw)
  To: linux-assembly

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: flat binary
  2003-10-23 15:37 flat binary Mirek Dobsicek
@ 2003-10-23 18:05 ` willy meier
  2003-10-24 12:47 ` Emanuele Altieri
  1 sibling, 0 replies; 3+ messages in thread
From: willy meier @ 2003-10-23 18:05 UTC (permalink / raw)
  To: linux-assembly, linux-assembly; +Cc: Mirek Dobsicek

Mirek Dobsicek wrote:
> 
> 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

-- 
Linux,Assembly,Forth: http://www.lxhp.in-berlin.de/index-lx.shtml
  >> xxxx -at- lxhp -dot- in-berlin -dot- de <<

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: flat binary
  2003-10-23 15:37 flat binary Mirek Dobsicek
  2003-10-23 18:05 ` willy meier
@ 2003-10-24 12:47 ` Emanuele Altieri
  1 sibling, 0 replies; 3+ messages in thread
From: Emanuele Altieri @ 2003-10-24 12:47 UTC (permalink / raw)
  To: Mirek Dobsicek; +Cc: linux-assembly

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

On Thu, 2003-10-23 at 11:37, Mirek Dobsicek wrote:
> 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 majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-10-24 12:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-23 15:37 flat binary Mirek Dobsicek
2003-10-23 18:05 ` willy meier
2003-10-24 12:47 ` Emanuele Altieri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).