linux-assembly.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Bin and other short question
@ 2006-09-11 19:37 Henio Paszczak
  2006-09-11 20:06 ` mikeos
  0 siblings, 1 reply; 2+ messages in thread
From: Henio Paszczak @ 2006-09-11 19:37 UTC (permalink / raw)
  To: linux-assembly

Hi.
I wont to create bin file with using gas haw can i do
it. 
( fir example in nasm its enough to compile with -f
bin
nasm -f bin -o * *.asm )

Scund question is about closing and opening sections.
If forexample i want to change some thing in section i
have to create it with "w" index ... is it posible to
change this state inside section ? for example wfter
writing what i want to change i wont to close it ...
just for case ( interupt 125 do something like this ,
when i used it in .text section it didn'y made any
changes i mean if i try to write sometning iside i
recived segmentation error)

Lukas

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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

* Re: Bin and other short question
  2006-09-11 19:37 Bin and other short question Henio Paszczak
@ 2006-09-11 20:06 ` mikeos
  0 siblings, 0 replies; 2+ messages in thread
From: mikeos @ 2006-09-11 20:06 UTC (permalink / raw)
  To: linux-assembly

On Mon, Sep 11, 2006 at 12:37:26PM -0700, Henio Paszczak wrote:
> Hi.
> I wont to create bin file with using gas haw can i do
> it. 
> ( fir example in nasm its enough to compile with -f
> bin
> nasm -f bin -o * *.asm )
> 
> Scund question is about closing and opening sections.
> If forexample i want to change some thing in section i
> have to create it with "w" index ... is it posible to
> change this state inside section ? for example wfter
> writing what i want to change i wont to close it ...
> just for case ( interupt 125 do something like this ,
> when i used it in .text section it didn'y made any
> changes i mean if i try to write sometning iside i
> recived segmentation error)
> 
> Lukas

You can create bin file such way:

as -o test.o test.s
ld --oformat binary --omagic -Ttext 0x0 -o test test.o

Where option -Ttext sets start of text section,
for other linker's options - man ld


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

end of thread, other threads:[~2006-09-11 20:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-11 19:37 Bin and other short question Henio Paszczak
2006-09-11 20:06 ` mikeos

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).