Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src/usr.bin/ldd
Module Name: src
Committed By: mrg
Date: Sat Oct 15 05:55:46 UTC 2022
Modified Files:
src/usr.bin/ldd: ldd.1 ldd.c
Log Message:
ldd(1): add a -v option to display all errors not just the latest.
ldd on a go binary currently fails with an error that basically
says "not elf32 class". this is a true statement, as it is an
elf64 class object, but it's not useful. it happens because
ldd_elf64() is called, fails in _rtld_map_object(), and then
ldd_elf32() is called, and it fails because the class is wrong,
and only this error is returned. (this problem remains. the
call to map the object fails due to there being 3 instead of 2
elf segments in the file. i guess we need similar code in
ld.elf_so/map_objects.c as the kernel gained some time ago.)
perhaps the first error, not the last error, should be used if
everything fails, but this allows all failures to be see and
would be useful even if the error string handling changed.
To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/usr.bin/ldd/ldd.1
cvs rdiff -u -r1.25 -r1.26 src/usr.bin/ldd/ldd.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index