Date: Thu, 21 Feb 2002 10:13:07 -0500 (EST) From: Andrew Gallatin <gallatin@cs.duke.edu> To: Doug Rabson <dfr@nlsystems.com> Cc: <freebsd-alpha@freebsd.org> Subject: Re: alpha klds and the new linker Message-ID: <15477.3715.6908.110667@grasshopper.cs.duke.edu> In-Reply-To: <Pine.BSF.4.33.0202211100090.89657-100000@herring.nlsystems.com> References: <15476.25675.437556.224218@grasshopper.cs.duke.edu> <Pine.BSF.4.33.0202211100090.89657-100000@herring.nlsystems.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15477.3715.6908.110667>