Subject: Re: Segfault in libfontconfig
To: NetBSD/hpcsh <port-hpcsh@netbsd.org>
From: Valeriy E. Ushakov <uwe@ptc.spbu.ru>
List: port-hpcsh
Date: 09/14/2004 22:37:10
On Tue, Sep 14, 2004 at 22:21:40 +0400, Valeriy E. Ushakov wrote:

> fontconfig library uses functions that return structures.  SuperH ABI
> uses r2 to pass the pointer to the memory for the returned structure.
> But dynamic linker happily blows r2 away (it's a scratch register
> otherwise) while doing the dynamic symbol resolution.

I wonder if _rtld_bind_start (libexec/ld.elf_so/arch/sh3/rtld_start.S)
should save/restore r2 instead of r3.

Marcus?

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