Subject: Re: Dynamic linking is go (again)
To: Valeriy E. Ushakov <uwe@ptc.spbu.ru>
From: Marcus Comstedt <marcus@mc.pp.se>
List: port-sh3
Date: 07/05/2003 23:05:00
"Valeriy E. Ushakov" <uwe@ptc.spbu.ru> 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