This is the mail archive of the glibc-linux@ricardo.ecn.wfu.edu mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: ld.so cares about /usr/X11R6?


Hi!

On 27 May 1999, Andreas Jaeger wrote:

> >>>>> Robert Siemer writes:
>  > Question:
>  > Why does ld.so cares more about my directory-hierarchie and its symlinks
>  > instead to decide from LD_LIBRARY_PATH and /etc/ld.so.cache??
>  > How can I run this application even with a symlink from /usr/X11R6 to
>  > X11R6-libc6?
> 
> The problem you describe can happen if you link with
> --rpath=/usr/X11R6/lib.  In this case the run path (search path for
> libraries) is hardcoded into the binary.  You can check this with
> objdump.

siemer@panorama:/usr/X11R6-libc5/bin > objdump -x 
ghostview.hardcoded.libc5.old | grep -B2 -A2 X11R6
objdump: ghostview.hardcoded.libc5.old: No symbols
  NEEDED      libm.so.5
  NEEDED      libc.so.5
  RPATH       /usr/X11R6/lib
  INIT        0x8003250
  FINI        0x8014f90


You are right. Is it possible to change the RPATH in a binary?

Bye,
	Rob


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]