tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: current DSOs in 10?



In article <aDEITmJrSUMz6ffk%snips.stderr.spb.ru@localhost>,
Valery Ushakov  <uwe%stderr.spb.ru@localhost> wrote:
>I wanted to test something quickly.  I had an amd64 10.1 system handy
>and had a current amd64 build handy on my build host, so I just
>quickly did the change in the current tree, compiled the librrary and
>dropped the DSO onto the 10.1 system.  But the ld.so there cannot
>handle it!
>
>$ ldd /usr/sbin/sysinst
>/usr/sbin/sysinst:
>        -lcurses.9 => not found
>        -lterminfo.2 => /usr/lib/libterminfo.so.2
>        -lc.12 => /usr/lib/libc.so.12
>        -lprop.1 => /usr/lib/libprop.so.1
>        -lutil.7 => /usr/lib/libutil.so.7
>
>and with a debug build of ldd from 10.1 I get the following:
>
>...
>load by name libcurses.so.9 0x0
> Searching for "libcurses.so.9" (0x73235431d000)
>  Trying "/usr/lib/libcurses.so.9"
>/usr/lib/libcurses.so.9: PT_PHDR 0x40 phsize 504
>/usr/lib/libcurses.so.9: PT_LOAD 0x0 phsize 43336
>/usr/lib/libcurses.so.9: PT_LOAD 0xb000 phsize 93694
>/usr/lib/libcurses.so.9: PT_LOAD 0x22000 phsize 26464
>/usr/lib/libcurses.so.9: PT_LOAD 0x29cf8 phsize 17520
>/usr/lib/libcurses.so.9: PT_DYNAMIC 0x2ad20 phsize 368
>load by name libterminfo.so.2 0x0
> Searching for "libterminfo.so.2" (0x73235431d000)
>  Trying "/usr/lib/libterminfo.so.2"
>/usr/lib/libterminfo.so.2: PT_PHDR 0x40 phsize 392
>/usr/lib/libterminfo.so.2: PT_LOAD 0x0 phsize 55296
>/usr/lib/libterminfo.so.2: PT_LOAD 0x20dcb8 phsize 2864
>/usr/lib/libterminfo.so.2: PT_DYNAMIC 0x20de10 phsize 368
>/usr/lib/libterminfo.so.2: phdr 0x40 phsize 392 (loaded)
>headers: digesting PT_DYNAMIC at 0x73235300de10
>  d_tag 1 at 0x73235300de10
>  ...
>
>So it's not happy about the curses DSO.  Before I get onto the wild
>goose chase, does anyone knows off-hand what might be the problem
>here?  What have we broken and do we want to fix it?
>
>ldd from current does handle the file, so we might be just missing a
>pull up for some recent binutils change?

rtld in netbsd-10 can only handle 2 PT_LOAD sections.

christos



Home | Main Index | Thread Index | Old Index