mirror of
git://slackware.nl/current.git
synced 2024-12-27 09:59:16 +01:00
75a4a592e5
Mon Apr 25 13:37:00 UTC 2011 Slackware 13.37 x86_64 stable is released! Thanks to everyone who pitched in on this release: the Slackware team, the folks producing upstream code, and linuxquestions.org for providing a great forum for collaboration and testing. The ISOs are off to be replicated, a 6 CD-ROM 32-bit set and a dual-sided 32-bit/64-bit x86/x86_64 DVD. Please consider supporting the Slackware project by picking up a copy from store.slackware.com. We're taking pre-orders now, and offer a discount if you sign up for a subscription. As always, thanks to the Slackware community for testing, suggestions, and feedback. :-) Have fun!
49 lines
1.4 KiB
Diff
49 lines
1.4 KiB
Diff
2009-11-08 Aurelien Jarno <aurelien@aurel32.net>
|
|
|
|
* elf/ldd.bash.in: also handle error code 126 (ld.so non
|
|
executable). Always trace dynamic library dependencies through
|
|
the dynamic linker.
|
|
|
|
--- a/elf/ldd.bash.in
|
|
+++ b/elf/ldd.bash.in
|
|
@@ -153,8 +153,6 @@ for file do
|
|
echo "ldd: ${file}:" $"not regular file" >&2
|
|
result=1
|
|
elif test -r "$file"; then
|
|
- test -x "$file" || echo 'ldd:' $"\
|
|
-warning: you do not have execution permission for" "\`$file'" >&2
|
|
RTLD=
|
|
ret=1
|
|
for rtld in ${RTLDLIST}; do
|
|
@@ -167,28 +165,16 @@ warning: you do not have execution permission for" "\`$file'" >&2
|
|
fi
|
|
done
|
|
case $ret in
|
|
- 0)
|
|
- # If the program exits with exit code 5, it means the process has been
|
|
- # invoked with __libc_enable_secure. Fall back to running it through
|
|
- # the dynamic linker.
|
|
- try_trace "$file"
|
|
- rc=$?
|
|
- if [ $rc = 5 ]; then
|
|
- try_trace "$RTLD" "$file"
|
|
- rc=$?
|
|
- fi
|
|
- [ $rc = 0 ] || result=1
|
|
+ 0|2)
|
|
+ try_trace "$RTLD" "$file" || result=1
|
|
;;
|
|
- 1)
|
|
+ 1|126)
|
|
# This can be a non-ELF binary or no binary at all.
|
|
nonelf "$file" || {
|
|
echo $" not a dynamic executable"
|
|
result=1
|
|
}
|
|
;;
|
|
- 2)
|
|
- try_trace "$RTLD" "$file" || result=1
|
|
- ;;
|
|
*)
|
|
echo 'ldd:' ${RTLD} $"exited with unknown exit code" "($ret)" >&2
|
|
exit 1
|