Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030202AbWBNJ7K (ORCPT ); Tue, 14 Feb 2006 04:59:10 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030263AbWBNJ7J (ORCPT ); Tue, 14 Feb 2006 04:59:09 -0500 Received: from liaag1ae.mx.compuserve.com ([149.174.40.31]:2949 "EHLO liaag1ae.mx.compuserve.com") by vger.kernel.org with ESMTP id S1030202AbWBNJ7I (ORCPT ); Tue, 14 Feb 2006 04:59:08 -0500 Date: Tue, 14 Feb 2006 04:54:14 -0500 From: Chuck Ebbert <76306.1226@compuserve.com> Subject: Bogus objdump output from kernel object files? To: Andrew Morton Cc: Roland McGrath , Ulrich Drepper , linux-kernel Message-ID: <200602140458_MC3-1-B85E-D2BA@compuserve.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2600 Lines: 78 On Sun, 12 Feb 2006 at 01:40:46 -0800, Andrew Morton wrote: > btw, is something up with `make foo.lst'? It hasn't worked for me for some > time. > > bix:/usr/src/25> make mm/vmscan.lst > MKLST mm/vmscan.lst Just doing 'objdump -d -r -l -j .text mm/vmscan.o' gives: mm/vmscan.o: file format elf32-i386 Disassembly of section .text: 00000000 : kswapd_init(): ^^^^^^^^^^^^^^ This is actually at offset 0 in .init.text mm/vmscan.c:176 0: 55 push %ebp shrink_slab(): ^^^^^^^^^^^^^^ OK, back to the right location. 1: 89 e5 mov %esp,%ebp 3: 57 push %edi kswapd_init(): mm/vmscan.c:1801 ^^^^^^^^^^^^^^^^ Now back to kswapd_init() again?!?! 4: 56 push %esi 5: 89 c6 mov %eax,%esi include/asm/processor.h:710 7: 53 push %ebx 8: 83 ec 24 sub $0x24,%esp mm/vmscan.c:180 ^^^^^^^^^^^^^^^ b: 85 c0 test %eax,%eax include/asm/processor.h:710 d: b8 20 00 00 00 mov $0x20,%eax mm/vmscan.c:176 12: 89 55 e4 mov %edx,0xffffffe4(%ebp) mm/vmscan.c:180 15: 0f 44 f0 cmove %eax,%esi include/asm/rwsem.h:126 18: a1 0c 00 00 00 mov 0xc,%eax 19: R_386_32 .data 1d: 89 c2 mov %eax,%edx 1f: 83 c2 01 add $0x1,%edx mm/vmscan.c:1803 ^^^^^^^^^^^^^^^^ 22: 7e 09 jle 2d 24: 0f b1 15 0c 00 00 00 cmpxchg %edx,0xc 27: R_386_32 .data 2b: 75 f0 jne 1d mm/vmscan.c:183 2d: 85 c0 test %eax,%eax 2f: c7 45 e8 01 00 00 00 movl $0x1,0xffffffe8(%ebp) 36: 0f 88 2c 01 00 00 js 168 So it is confused somehow. This is with debug info generated by gcc 4.0.2 from Fedora Core 4 (Red Hat 4.0.2-8) and locally-compiled objdump 2.16.1 (there seems to be no binutils update for FC4 available.) -- Chuck "Equations are the Devil's sentences." --Stephen Colbert - 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/