Subject: Re: Dynamic ELF support
To: Marcus Comstedt <marcus@idonex.se>
From: Jason R Thorpe <thorpej@wasabisystems.com>
List: port-sh3
Date: 02/03/2002 15:35:07
On Mon, Apr 09, 2001 at 01:17:25AM +0200, Marcus Comstedt wrote:

 > Since I noticed that support for dynamic binaries wasn't implemented
 > in the SH3/SH4 port, I decided I should give it a go (as I really need
 > to use shared libraries).  The attached patch works with a trivial
 > test library, so it's better than nothing at least.  Please take a
 > look, or try it out even.  It shouldn't break anything not related to
 > dynamic executables (which didn't work anyway), but I'll wait at least
 > a week or so before committing anything so you can give it a proper
 > peer review.  Note that you need to use an up to date toolchain (gcc
 > 3.0 and a current snapshot of binutils) to build ld.elf_so as the
 > older toolchains can't create proper PIC code.  Also, rtld_start.S
 > assumes that you don't have LEADING_UNDERSCORE.

I've just committed this to NetBSD-current, with some bug fixes (namely,
your patch didn't use the addends in the Elf32_Rela when it should have
been).

-- 
        -- Jason R. Thorpe <thorpej@wasabisystems.com>