libdwarf: fix inconsistent usage of calloc(3).
The first parameter to calloc(3) should be an item count.
Obtained from: https://reviews.freebsd.org/D46007
libdwarf: Fix a potential memory leak.
'dwarf_get_abbrev()' can fail whilst in the middle of constructing
a 'Dwarf_Abbrev' instance, leaking the memory for the partially
constructed instance.
This change refactors the allocation and release code for 'struct
_Dwarf_Abbrev' structures into independently callable helper
functions, and then uses these to ensure that any partially
constructed structures are destroyed in the event of an error.
Reported by: Coverity Scan
Coverity CID: 352394
libdwarf: preserve prior behavior of dwarf_next_cu_header_c().
The dwarf_next_cu_header_c() and dwarf_next_cu_header_d() APIs are
similar, except for the 'cu_type' parameter in
dwarf_next_cu_header_d(). Since dwarf_next_cu_header_c() is
implemented using dwarf_next_cu_header_d(), we need to propagate the
'is_info', 'type_signature' and 'type_offset' parameters to
dwarf_next_cu_header_c() onward to the invocation of
dwarf_next_cu_header_d().
Fix special sub-directory targets in Ubuntu 22.04.
The 'bmake' package for this Ubuntu version spells the variable
with the list of targets requiring recursion into subdirectories
as 'SUBDIR_TARGETS'.
Inform SVN about files containing binary data.
Set the 'svn:mime-type' property to 'application/octet-stream'
on files with binary data.
This change prevents the display of binary data on the terminal
when running a 'svn diff'.
Move TET-based tests to a 'tet/' subdirectory.
This changes paves the way for adding an 'atf/' directory for
ATF-based tests.
Apart from the file moves, this move entails:
- Adjusting the value of the 'TOP' variable in Makefiles
that were moved.
- Adjusting paths under 'mk/elftoolchain.tet*.mk'.
Ticket: #618