Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Feb 2002 11:44:08 -0500 (EST)
From:      Andrew Gallatin <gallatin@cs.duke.edu>
To:        Doug Rabson <dfr@nlsystems.com>, obrien@freebsd.org
Cc:        <freebsd-alpha@freebsd.org>
Subject:   Re: alpha klds and the new linker
Message-ID:  <15477.9176.282410.432338@grasshopper.cs.duke.edu>
In-Reply-To: <Pine.BSF.4.33.0202211623290.89657-100000@herring.nlsystems.com>
References:  <15477.3715.6908.110667@grasshopper.cs.duke.edu> <Pine.BSF.4.33.0202211623290.89657-100000@herring.nlsystems.com>

next in thread | previous in thread | raw e-mail | index | archive | help

Doug Rabson writes:
 > 
 > I guess it might be something to do with all those RELATIVE relocs which
 > have addends. I can't see anything obviously wrong with the code but it
 > has never been called with non-zero addends so there could easily be a

I just downloaded the bin distro for an x86 snapshot (Feb 19th) and
ran objdump -R on x86 klds and they see to not have addends.   Eg:

<..>
000047ef R_386_PC32        make_dev
000047f4 R_386_RELATIVE    *ABS*
000047fc R_386_RELATIVE    *ABS*
<..>

How would we coerce the linker to not produce RELATIVE relocs w/addends
in order to test this theory?

 > problem there. Wasn't there something similar with rtld recently?


The problem with the rtld was that it made assumptions about the order
of the elf sections in ld-elf.so.  Here's what Peter said in his
commit message:

  ld-elf.so.1 assumed a few too many things about the ordering of
  sections produced by ld(8) (ie: that _DYNAMIC immediately follows
  the _GOT).  The new binutils import changed that, and the intial GOT
  relocation broke.  Use a custom linker script to provide a real
  end-of-GOT symbol.


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.9176.282410.432338>