This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: ELF instruction for section and branch.
- From: Jamie Lokier <jamie at shareable dot org>
- To: Gagneet Singh <gagneet at acmet dot com>
- Cc: "'Richard Sandiford'" <rsandifo at redhat dot com>, gcc at gcc dot gnu dot org, gcc-help at gcc dot gnu dot org
- Date: Sun, 21 Dec 2003 14:52:03 +0000
- Subject: Re: ELF instruction for section and branch.
- References: <87ekv0rcxb.fsf@redhat.com> <00b501c3c706$ff7e62f0$9900a8c0@GAGNEET>
Gagneet Singh wrote:
> I wish to compile and link the example in the x86 architecture with ELF
> format as output, how will I do that and specially is that possible??
It works fine with x86 and plenty of other architectures.
You may also find the ".subsection" directive useful, if all you need
is for some instructions to be out of line. It will put the code in a
separate subsection at the end of the same section in the object file,
so the offset can be calculated at assembly time instead of link time.
-- Jamie