Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754392AbbGGHCC (ORCPT ); Tue, 7 Jul 2015 03:02:02 -0400 Received: from mail-wg0-f46.google.com ([74.125.82.46]:36781 "EHLO mail-wg0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751566AbbGGHBy (ORCPT ); Tue, 7 Jul 2015 03:01:54 -0400 Date: Tue, 7 Jul 2015 09:01:49 +0200 From: Ingo Molnar To: Andy Lutomirski Cc: Sasha Levin , Denys Vlasenko , "linux-kernel@vger.kernel.org" , Brian Gerst , Peter Zijlstra , Borislav Petkov , "H. Peter Anvin" , Linus Torvalds , Oleg Nesterov , Thomas Gleixner Subject: Re: [PATCH] x86/asm/entry/64: Clean up entry_64.S Message-ID: <20150707070149.GA9784@gmail.com> References: <1433752501-15901-1-git-send-email-mingo@kernel.org> <1433752501-15901-5-git-send-email-mingo@kernel.org> <5575954F.5070408@redhat.com> <20150608185106.GA28747@gmail.com> <559A9821.4010600@oracle.com> <559ABC24.8040300@oracle.com> <20150706174144.GA30462@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2243 Lines: 54 * Andy Lutomirski wrote: > On Mon, Jul 6, 2015 at 10:41 AM, Ingo Molnar wrote: > > > > * Sasha Levin wrote: > > > >> On 07/06/2015 01:20 PM, Andy Lutomirski wrote: > >> > On Mon, Jul 6, 2015 at 8:00 AM, Sasha Levin wrote: > >> >> > > >> >> > --- entry.before.o.cmd 2015-07-06 10:48:32.110189938 -0400 > >> >> > +++ entry.after.o.cmd 2015-07-06 10:48:23.509645442 -0400 > >> >> > @@ -1,5 +1,5 @@ > >> >> > > >> >> > -entry.before.o: file format elf64-x86-64 > >> >> > +entry.after.o: file format elf64-x86-64 > >> >> > > >> >> > > >> >> > Disassembly of section .entry.text: > >> >> > @@ -3961,8 +3961,8 @@ > >> >> > 3b: 09 02 or %eax,(%rdx) > >> >> > ... > >> >> > 3d: R_X86_64_64 .entry.text > >> >> > - 45: 03 3a add (%rdx),%edi > >> >> > - 47: 01 3d 03 d6 00 c8 add %edi,-0x37ff29fd(%rip) # ffffffffc800d650 > >> >> > + 45: 03 33 add (%rbx),%esi > >> >> > + 47: 01 3d 03 d5 00 c8 add %edi,-0x37ff2afd(%rip) # ffffffffc800d550 > >> > What exactly are you doing to generate this diff? This all looks really weird. > >> > > >> >> > 4d: 44 91 rex.R xchg %eax,%ecx > >> >> > 4f: 93 xchg %eax,%ebx > >> >> > 50: 2f (bad) > >> > For example: what on earth is the asm above? > >> > >> objdump... > > > > Oh, so I'm using 'objdump -d' to compare - but you probably used 'objdump > > --disassemble-all', to disassemble .data sections as well? > > > > I can reproduce the difference now. Give me a few minutes to see if I > can figure out what's causing it. Yeah, so I'm using -d instead of --disassemble-all to not have false positives on .data details such as line number sensitive debug info. Thanks, Ingo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/