[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openbsd-sparc
Subject:    Re: COMPAT_SVR4 for sparc64: Advice needed
From:       "Carlos Valiente" <superdupont () gmail ! com>
Date:       2006-03-29 14:22:29
Message-ID: e2b218020603290622h667d65bhda0cb918f44d8ad7 () mail ! gmail ! com
[Download RAW message or body]

Thanks for your feedback, Uwe.

> > http://cvs.opensolaris.org/source/xref/on/usr/src/cmd/sgs/rtld/common/elf.c#2555
> > http://cvs.opensolaris.org/source/xref/on/usr/src/cmd/sgs/rtld/common/elf.c#2640
>
> I have not looked at your diffs, nor at netbsd code.
> However, in elf.c I see:
>
> 2634    /*
> 2635     * Check that the files size accounts for the loadable sections
> 2636     * we're going to map in (failure to do this may cause spurious
> 2637     * bus errors if we're given a truncated file).
> 2638     */
>
> Maybe stat() returned wrong results, or maybe the ELF header that
> ld.so is working on is botched?

I checked the checksums of all files involved (ld.so, lic.so.1 and my
binary) and they match with the Solaris 10 originals, so I guess
there's something fishy with the emulation of mmap().

> Does your test program work when linked statically?

Apparently there's no 64-bit static version of libc under Solaris 10 :-(

C

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic