Re: Dynamic linking is go (again)

Marcus Comstedt <[email protected]>
Newsgroups gmane.os.netbsd.ports.sh3,gmane.os.netbsd.ports.dreamcast
Message-ID <[email protected]>
"Valeriy E. Ushakov" <[email protected]> writes:

> I recompiled ld.elf_so with debugging and now it prints something
> like:
> 
> <toor@nada:/mnt/distrib/bin> # ldd date
> date:
>          -lutil.7 => /lib/libutil.so.7
>          -lc.12 => /lib/libc.so.12
> <toor@nada:/mnt/distrib/bin> # ./date
> sp = 0x7fffe954, argc = 1, argv = 0x7fffe960 <./date> relocbase 0x20420000
> Memory fault (core dumped) 

Debugging doesn't fully work on sh3, you have to comment out the debug
lines that crash.


> Having no clue about PIC for sh3 I wonder if something is Wrong(TM)
> here.

Yes, the debug printout is wrong for sh3, as it tries to access
_GLOBAL_OFFSET_TABLE_ as a regular variable, but it is really a
magical label so it won't work.  Only the debug code is affected
though.


  // Marcus
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.