From owner-freebsd-alpha Thu Feb 21 7:13:55 2002 Delivered-To: freebsd-alpha@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id A7A2837B41C for ; Thu, 21 Feb 2002 07:13:35 -0800 (PST) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id KAA22330; Thu, 21 Feb 2002 10:13:35 -0500 (EST) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.6/8.9.1) id g1LFD7s73466; Thu, 21 Feb 2002 10:13:07 -0500 (EST) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15477.3715.6908.110667@grasshopper.cs.duke.edu> Date: Thu, 21 Feb 2002 10:13:07 -0500 (EST) To: Doug Rabson Cc: Subject: Re: alpha klds and the new linker In-Reply-To: References: <15476.25675.437556.224218@grasshopper.cs.duke.edu> X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Doug Rabson writes: > On Wed, 20 Feb 2002, Andrew Gallatin wrote: > > > > > Doug, > > > > There's something about the new linker (from the latest binutils > > import) which breaks klds on alpha. If I attempt to load a module > > built with the new binutils, things go kaboom like this: > > >From looking at this, I can't say much other than that it looks like the > symbol lookup for "modmetadata_set" returned something bogus. Either that > or maybe the linker sets didn't get relocated properly. What does > 'objdump -p' and 'objdump -R' look like for the two files? Due to their size, I've left the objdump -R output on freefall: http://people.freebsd.org/~gallatin/objdump-R_new http://people.freebsd.org/~gallatin/objdump-R_old Here is the objdump -p output: # objdump -pw osf1.ko.works osf1.ko.works: file format elf64-alpha Program Header: LOAD off 0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**16 filesz 0x000000000000bed8 memsz 0x000000000000bed8 flags r-x LOAD off 0x000000000000bed8 vaddr 0x000000000001bed8 paddr 0x000000000001bed8 align 2**16 filesz 0x0000000000001eb0 memsz 0x0000000000001eb0 flags rwx DYNAMIC off 0x000000000000dca8 vaddr 0x000000000001dca8 paddr 0x000000000001dca8 align 2**3 filesz 0x00000000000000e0 memsz 0x00000000000000e0 flags rw- Dynamic Section: HASH 0xe8 STRTAB 0x2400 SYMTAB 0xe58 STRSZ 0x7d3 SYMENT 0x18 PLTGOT 0x1d328 PLTRELSZ 0x870 PLTREL 0x7 JMPREL 0x51d0 RELA 0x2bd8 RELASZ 0x25f8 RELAENT 0x18 TEXTREL 0x0 # objdump -pw osf1.ko osf1.ko: file format elf64-alpha Program Header: LOAD off 0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**16 filesz 0x000000000000be78 memsz 0x000000000000be78 flags r-x LOAD off 0x000000000000be78 vaddr 0x000000000001be78 paddr 0x000000000001be78 align 2**16 filesz 0x0000000000001f00 memsz 0x0000000000001f00 flags rwx DYNAMIC off 0x000000000000d2c8 vaddr 0x000000000001d2c8 paddr 0x000000000001d2c8 align 2**3 filesz 0x0000000000000130 memsz 0x0000000000000130 flags rw- Dynamic Section: HASH 0xe8 STRTAB 0x2400 SYMTAB 0xe58 STRSZ 0x75a SYMENT 0x18 PLTGOT 0x1d3f8 PLTRELSZ 0x870 PLTREL 0x7 JMPREL 0x5158 RELA 0x2b60 RELASZ 0x25f8 RELAENT 0x18 TEXTREL 0x0 Thanks, Drew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message