This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Avoiding unnecessary jump relocations in gas?
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: "H. Peter Anvin" <hpa at zytor dot com>
- Cc: Andy Lutomirski <luto at amacapital dot net>, Borislav Petkov <bp at alien8 dot de>, Jan Beulich <JBeulich at suse dot com>, Binutils <binutils at sourceware dot org>, "linux-kernel at vger dot kernel dot org" <linux-kernel at vger dot kernel dot org>
- Date: Mon, 18 May 2015 13:25:02 -0700
- Subject: Re: Avoiding unnecessary jump relocations in gas?
- Authentication-results: sourceware.org; auth=none
- References: <CALCETrUXnXVARO=KD+r0YV1wi2vvXF-41VS++F877HsJs1qz9Q at mail dot gmail dot com> <554B6E0102000078000778D0 at mail dot emea dot novell dot com> <CAMe9rOri61BL=uUgC8FVCs0peGR=KKRh629rOsRtbzMs8N=MrA at mail dot gmail dot com> <CALCETrX35KY8M0JKdoF1CB853AiS8wqH2-uQ976EptU3xf3=Dg at mail dot gmail dot com> <CAMe9rOpOuYY0DffAd21VffSpvzvrkPe2pJxpZtEQX=Djpi_Lgw at mail dot gmail dot com> <CAMe9rOrA2QGEagix2PK=QwwapBWMptr4gxW8t06-HhkodBTVwA at mail dot gmail dot com> <CALCETrVSN7Mt_tRQ1_x=mvYD-ygoCHM+juvi80bhddaUEDDxdA at mail dot gmail dot com> <CAMe9rOqrdRUH9kPU6aO=fmtfdPoua319kvsZgRovEyT37kencQ at mail dot gmail dot com> <555A4628 dot 4060802 at zytor dot com>
On Mon, May 18, 2015 at 1:06 PM, H. Peter Anvin <hpa@zytor.com> wrote:
> On 05/18/2015 01:02 PM, H.J. Lu wrote:
>>>
>>> I wonder if it would make sense to have explicit mnemonics for the
>>> one-byte offset and four-byte offset jump variants. Sometimes users
>>> want a jump with a 32-bit offset for reasons that have nothing to do
>>> with link-time or load-time relocations.
>>>
>>
>> There is:
>>
>> jmp.d32 foo
>>
>
> How far back does that syntax work?
>
.d32 support was added by
commit f8a5c266971d7b5b96f973805551c6e88669cada
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Thu Oct 14 13:31:13 2010 +0000
Add .d32 encoding suffix.
and .d8 supported was added by
commit a501d77eeba717f6d54dce44f286f9e3aad83144
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Fri Jan 20 20:53:50 2012 +0000
Add .d8 suffix support to x86 assembler
I don't believe .d16 is supported.
--
H.J.