Re: Bin and other short question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-
To unsubscribe from this list: send the line "unsubscribe linux-assembly" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies]     [Security]     [Linux C Programming]     [Linux for Hams]     [DCCP]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux