Subject: Re: Dynamic linking is go (again)
To: None <port-sh3@netbsd.org>
From: Valeriy E. Ushakov <uwe@ptc.spbu.ru>
List: port-dreamcast
Date: 07/05/2003 20:53:10
On Sat, Jul 05, 2003 at 05:58:26 +0900, Izumi Tsutsui wrote:

> > > - libexec/ld.elf_so/arch/sh3/mdreloc.c lacks some function declarations
> > >   (and copyright notice).
> > 
> > Which function declarations?
> 
[...]
> I applied the following patch:
> 
> --- arch/sh3/mdreloc.c.0	2003-07-05 05:50:17.000000000 +0900
> +++ arch/sh3/mdreloc.c	2003-07-04 01:05:12.000000000 +0900
> @@ -7,6 +7,9 @@
>  #include "rtld.h"
>  
>  void _rtld_bind_start(void);
> +void _rtld_relocate_nonplt_self(Elf_Dyn *, Elf_Addr);
> +caddr_t _rtld_bind(const Obj_Entry *, Elf_Word);
> +int _rtld_relocate_plt_object(const Obj_Entry *, const Elf_Rela *, caddr_t *);
>  
>  void
>  _rtld_setup_pltgot(const Obj_Entry *obj)

Please, can you commit it?

PS: I'll pic'ify _context_u.S (already have tweaked the code, need to
test it).  If my PIC cross-build (in progress) will get me a working
dynamic binaries, that is. ;)

SY, Uwe
-- 
uwe@ptc.spbu.ru                         |       Zu Grunde kommen
http://www.ptc.spbu.ru/~uwe/            |       Ist zu Grunde gehen