From: mikeos@inbox.ru
To: linux-assembly@vger.kernel.org
Subject: Re: Bin and other short question
Date: Tue, 12 Sep 2006 00:06:16 +0400 [thread overview]
Message-ID: <20060911200616.GA4401@arch> (raw)
In-Reply-To: <20060911193726.1821.qmail@web50309.mail.yahoo.com>
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
prev parent reply other threads:[~2006-09-11 20:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-11 19:37 Bin and other short question Henio Paszczak
2006-09-11 20:06 ` mikeos [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060911200616.GA4401@arch \
--to=mikeos@inbox.ru \
--cc=linux-assembly@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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 read-only IMAP folder(s) and NNTP newsgroup(s).