Re: Segfault in libfontconfig

"Valeriy E. Ushakov" <[email protected]>
Newsgroups gmane.os.netbsd.ports.dreamcast,gmane.os.netbsd.ports.hpcsh
Message-ID <[email protected]>
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
-- 
[email protected]                         |       Zu Grunde kommen
http://www.ptc.spbu.ru/~uwe/            |       Ist zu Grunde gehen
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.