From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27980 invoked by alias); 12 May 2015 13:57:21 -0000 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org Received: (qmail 27960 invoked by uid 89); 12 May 2015 13:57:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-oi0-f51.google.com Received: from mail-oi0-f51.google.com (HELO mail-oi0-f51.google.com) (209.85.218.51) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Tue, 12 May 2015 13:57:19 +0000 Received: by oift201 with SMTP id t201so6366212oif.3 for ; Tue, 12 May 2015 06:57:18 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.182.86.39 with SMTP id m7mr12170138obz.18.1431439037959; Tue, 12 May 2015 06:57:17 -0700 (PDT) Received: by 10.76.54.14 with HTTP; Tue, 12 May 2015 06:57:17 -0700 (PDT) In-Reply-To: References: <20150511212331.GA1838@intel.com> <5551F4E70200007800079575@mail.emea.novell.com> <55520C440200007800079718@mail.emea.novell.com> <555216370200007800079773@mail.emea.novell.com> Date: Tue, 12 May 2015 13:57:00 -0000 Message-ID: Subject: Re: [committed, PATCH] Remove Disp16|Disp32 from 64-bit direct branches From: "H.J. Lu" To: Michael Matz Cc: Jan Beulich , Binutils Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2015-05/txt/msg00085.txt.bz2 On Tue, May 12, 2015 at 6:49 AM, Michael Matz wrote: > Hi, > > On Tue, 12 May 2015, H.J. Lu wrote: > >> This is what I got now: >> >> [hjl@gnu-6 tmp]$ cat x.s >> .text >> data16 jmp foo >> bar: >> mov %eax,%edx >> [hjl@gnu-6 tmp]$ gcc -c x.s >> [hjl@gnu-6 tmp]$ objdump -dwr x.o >> >> x.o: file format elf64-x86-64 >> >> >> Disassembly of section .text: >> >> 0000000000000000 : >> 0: 66 e9 00 00 89 c2 data16 jmpq ffffffffc2890006 >> 2: R_X86_64_PC16 foo-0x2 >> >> 0000000000000004 : >> 4: 89 c2 mov %eax,%edx >> [hjl@gnu-6 tmp]$ >> >> Is that the same as what you got with binutils 2.25? > > This is with 2.23, so your patch would cause a regression: 1. This happened before 20140923. 2. Can you speculate what " jmpw 4" does? > x.o: file format elf64-x86-64 > > > Disassembly of section .text: > > 0000000000000000 : > 0: 66 e9 00 00 jmpw 4 > 2: R_X86_64_PC16 foo-0x2 > > 0000000000000004 : > 4: 89 c2 mov %eax,%edx > > > Ciao, > Michael. -- H.J.