opnsense-src/usr.bin/ldd
John Baldwin fa3b2ad265 Fix ldd to work with more ELF files.
- Use libelf to parse ELF data structures and remove code duplication
  for ELF32.

- Don't require the OSABI field to be set to the FreeBSD OSABI for
  shared libraries.  Both AArch64 and RISC-V leave it set to "none"
  and instead depend on the ABI tag note.  For ldd, this means falling
  back to walking the notes in PT_NOTE segments to find the ABI tag
  note to determine if an ELF shared library without OSABI set in the
  header file is a FreeBSD shared library.

(cherry picked from commit 9d4104b214)
2021-02-04 16:03:20 -08:00
..
ldd.1 Add an IMPLEMENTATION NOTES section to ldd.1. 2018-10-23 13:49:53 +00:00
ldd.c Fix ldd to work with more ELF files. 2021-02-04 16:03:20 -08:00
Makefile Fix ldd to work with more ELF files. 2021-02-04 16:03:20 -08:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00