This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: ELF instruction for section and branch.
- From: "Gagneet Singh" <gagneet at acmet dot com>
- To: "'Jamie Lokier'" <jamie at shareable dot org>
- Cc: "'Richard Sandiford'" <rsandifo at redhat dot com>, <gcc at gcc dot gnu dot org>, <gcc-help at gcc dot gnu dot org>
- Date: Wed, 24 Dec 2003 16:21:17 +0530
- Subject: RE: ELF instruction for section and branch.
- Organization: Acme Technologies Pvt. Ltd.
- Reply-to: <gagneet at acmet dot com>
I tried using it for MIPS but I think it is not defined there, but it
work perfectly for x86 ELF.
Will have to get more info on this from the MIPS people.
Thanx for the advice.
> -----Original Message-----
> From: Jamie Lokier [mailto:jamie@shareable.org]
> Sent: Sunday, 21 December, 2003 20:22 PM
> To: Gagneet Singh
> Cc: 'Richard Sandiford'; gcc@gcc.gnu.org; gcc-help@gcc.gnu.org
> Subject: Re: ELF instruction for section and branch.
>
>
> 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
>