This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: [sparc-solaris] unexpected warning when starting program
- From: Joel Brobecker <brobecker at adacore dot com>
- To: gdb at sourceware dot org
- Date: Tue, 10 Apr 2007 23:48:51 +0200
- Subject: Re: [sparc-solaris] unexpected warning when starting program
- References: <20070312051646.GI14401@adacore.com> <20070410213515.GA6338@caradoc.them.org>
> xfullpath isn't really that expensive. We could even do it only for
> ld.so.1; I think that's not totally unreasonable.
>
> Are you sure the files are distinct on your Solaris 2.8 / 2.9? I have
> a symlink /lib -> ./usr/lib on 2.8, and a symlink /usr/lib/ld.so.1 ->
> ../../lib/ld.so.1 on 2.10.
Yes, on one of our Solaris 2.8 machines, they are distinct (although
identical):
bbk@nile ~>uname -a
SunOS nile 5.8 Generic_117350-24 sun4u sparc SUNW,Sun-Fire-V440 Solaris
bbk@nile ~>ls -l /lib/ld.so.1 /usr/lib/ld.so.1
-rwxr-xr-x 1 root bin 267824 Feb 25 2005 /lib/ld.so.1*
-rwxr-xr-x 1 root bin 267824 Feb 25 2005 /usr/lib/ld.so.1*
bbk@nile ~>md5sum /lib/ld.so.1 /usr/lib/ld.so.1
0e2c1ce2e68149904a5df691b32d5115 /lib/ld.so.1
0e2c1ce2e68149904a5df691b32d5115 /usr/lib/ld.so.1
I checked one of our Solaris 2.9 machines, and it's the same.
Thought it wouldn't help in these particular cases, it would
still help in the solaris 2.10 one...
--
Joel