ELF Tool Chain/elftoolchain 4049trunk/libdwarf libdwarf_abbrev.c

libdwarf: (bugfix) add a change inadvertently missed in [r4046].
DeltaFile
+2-0trunk/libdwarf/libdwarf_abbrev.c
+2-01 files

ELF Tool Chain/elftoolchain 4048trunk/libdwarf libdwarf_init.c

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
DeltaFile
+1-1trunk/libdwarf/libdwarf_init.c
+1-11 files

ELF Tool Chain/elftoolchain 4047trunk/libdwarf libdwarf_abbrev.c

libdwarf: Avoid assigning undefined values to a structure member.

DeltaFile
+1-0trunk/libdwarf/libdwarf_abbrev.c
+1-01 files

ELF Tool Chain/elftoolchain 4046trunk/libdwarf libdwarf_abbrev.c

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
DeltaFile
+48-22trunk/libdwarf/libdwarf_abbrev.c
+48-221 files

ELF Tool Chain/elftoolchain 4045trunk/ar Makefile, trunk/elfcopy Makefile

Unbreak the 'test' target for 'ar' and 'elfcopy'.
DeltaFile
+2-0trunk/ar/Makefile
+2-0trunk/elfcopy/Makefile
+4-02 files

ELF Tool Chain/elftoolchain 4044trunk/mk elftoolchain.test-target.mk

Bug-fix: unbreak the 'test' target within program/library directories.
DeltaFile
+7-4trunk/mk/elftoolchain.test-target.mk
+7-41 files

ELF Tool Chain/elftoolchain 4043trunk/tests/tet/nm/ts/common func.sh

Catch up with the directory reorganisation in [r4029].
DeltaFile
+2-2trunk/tests/tet/nm/ts/common/func.sh
+2-21 files

ELF Tool Chain/elftoolchain 4042trunk BASE-SYSTEM-IMPORT.rst, trunk/common _elftc.h

Minor: spell 'placeholder' correctly.
DeltaFile
+4-4trunk/BASE-SYSTEM-IMPORT.rst
+3-3trunk/common/_elftc.h
+7-72 files

ELF Tool Chain/elftoolchain 4041trunk/common _elftc.h

Define the ELFTC_VCSID macro under Cygwin.

Ticket: #621
Submitted by: Joel Sherril
DeltaFile
+2-1trunk/common/_elftc.h
+2-11 files

ELF Tool Chain/elftoolchain 4040trunk/libdwarf dwarf_cu.c

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().

DeltaFile
+3-3trunk/libdwarf/dwarf_cu.c
+3-31 files

ELF Tool Chain/elftoolchain 4039trunk/libdwarf libdwarf_str.c dwarf_form.c, trunk/readelf readelf.c

Add support for DWARF5 .debug_str_offsets section.

Submitted by:   Toby Lloyd Davies (original patch)
Ticket:         #620
DeltaFile
+128-0trunk/libdwarf/libdwarf_str.c
+22-0trunk/libdwarf/dwarf_form.c
+15-0trunk/libdwarf/dwarf_attrval.c
+14-0trunk/libdwarf/_libdwarf.h
+9-1trunk/libdwarf/libdwarf_lineno.c
+9-0trunk/readelf/readelf.c
+197-13 files not shown
+199-69 files

ELF Tool Chain/elftoolchain 4038trunk/libdwarf libdwarf_info.c

libdwarf: Fix a memory leak.

Submitted by:   Toby Lloyd Davies
Ticket:         #619
DeltaFile
+1-0trunk/libdwarf/libdwarf_info.c
+1-01 files

ELF Tool Chain/elftoolchain 4037trunk/tests Makefile custom, trunk/tests/custom Makefile ar

Move the test suites for 'ar' & 'elfcopy'.

These test suites use their own custom test framework, so a
'custom/' directory would be a better fit.
DeltaFile
+11-0trunk/tests/custom/Makefile
+0-2trunk/tests/tet/Makefile
+1-0trunk/tests/Makefile
+0-0trunk/tests/tet/elfcopy/
+0-0trunk/tests/custom/
+0-0trunk/tests/custom/ar/
+12-22 files not shown
+12-28 files

ELF Tool Chain/elftoolchain 4036trunk/tests/tet/ar func.sh, trunk/tests/tet/elfcopy func.sh

Bug-fix: adjust paths after a directory move.

These test suites were moved down one directroy level
in [r4029].
DeltaFile
+1-1trunk/tests/tet/elfcopy/func.sh
+1-1trunk/tests/tet/ar/func.sh
+2-22 files

ELF Tool Chain/elftoolchain 4035trunk Makefile test, trunk/mk elftoolchain.tetbase.mk elftoolchain.tetvars.mk

Rename the 'test' directory to 'tests'.

With this change a 'make test' at the top-level will build the
project and run its test suites.
DeltaFile
+5-5trunk/Makefile
+1-1trunk/mk/elftoolchain.tetbase.mk
+1-1trunk/mk/elftoolchain.tetvars.mk
+1-1trunk/mk/elftoolchain.test.mk
+1-1trunk/mk/elftoolchain.tet.mk
+0-0trunk/test/
+9-92 files not shown
+9-98 files

ELF Tool Chain/elftoolchain 4034trunk/test/tet/elfcopy/tc/strip-all-9/out strip-all-9.out.shar, trunk/test/tet/elfcopy/tc/strip-all-archive-1/in strip-all-archive-1.in.shar

Suppress 'svn diff' for 'shar' archives.

These files contain 'uuencoded' data, and are not
diff-able in a meaningful way.
DeltaFile
+0-0trunk/test/tet/elfcopy/tc/strip-all-9/out/strip-all-9.out.shar
+0-0trunk/test/tet/elfcopy/tc/strip-all-archive-1/in/strip-all-archive-1.in.shar
+0-0trunk/test/tet/elfcopy/tc/strip-all-archive-1/out/strip-all-archive-1.out.shar
+0-0trunk/test/tet/elfcopy/tc/strip-all-archive-2/in/strip-all-archive-2.in.shar
+0-0trunk/test/tet/elfcopy/tc/strip-all-archive-2/out/strip-all-archive-2.out.shar
+0-0trunk/test/tet/elfcopy/tc/strip-debug-1/in/strip-debug-1.in.shar
+0-0178 files not shown
+0-0184 files

ELF Tool Chain/elftoolchain 4033trunk/mk elftoolchain.subdir.mk

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'.
DeltaFile
+3-1trunk/mk/elftoolchain.subdir.mk
+3-11 files

ELF Tool Chain/elftoolchain 4032trunk/test/tet/nm/ts/nm_archive2 test_ar.uu, trunk/test/tet/nm/ts/nm_debug test_obj.uu

Mark files with uuencoded content as binary data.

Although encoded using ASCII these files are not diff-able
in a meaningful way.
DeltaFile
+0-0trunk/test/tet/nm/ts/nm_object1/test_obj.uu
+0-0trunk/test/tet/nm/ts/nm_shared_object1/test_so.uu
+0-0trunk/test/tet/nm/ts/nm_shared_object2/test_ko.uu
+0-0trunk/test/tet/nm/ts/nm_object2/test_obj.uu
+0-0trunk/test/tet/nm/ts/nm_debug/test_obj.uu
+0-0trunk/test/tet/nm/ts/nm_archive2/test_ar.uu
+0-01 files not shown
+0-07 files

ELF Tool Chain/elftoolchain 4031trunk/test/tet/libdwarf/ts/common/object ld_symver.o-64-g1.gz, trunk/test/tet/libdwarf/ts/dwarf_attrlist ld_symver.o-64-g1.xml.gz

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'.

DeltaFile
+0-0trunk/test/tet/libdwarf/ts/dwarf_attrlist/ld_symver.o-64-g1.xml.gz
+0-0trunk/test/tet/libdwarf/ts/common/object/ld_symver.o-64-g1.gz
+0-0trunk/test/tet/libdwarf/ts/dwarf_next_cu_header/ld_symver.o-64-g1.xml.gz
+0-0trunk/test/tet/libdwarf/ts/dwarf_form/ld_symver.o-64-g1.xml.gz
+0-0trunk/test/tet/libdwarf/ts/dwarf_die_query/ld_symver.o-64-g1.xml.gz
+0-05 files

ELF Tool Chain/elftoolchain 4030trunk/test README.rst Makefile, trunk/test/atf Makefile

Add an 'atf/' directory for ATF based tests.

While here add a README.

Ticket: #618
DeltaFile
+8-0trunk/test/README.rst
+7-0trunk/test/atf/Makefile
+1-0trunk/test/Makefile
+0-0trunk/test/atf/
+16-04 files

ELF Tool Chain/elftoolchain 4029trunk/mk elftoolchain.tet.mk elftoolchain.tetvars.mk, trunk/test Makefile

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
DeltaFile
+0-66trunk/test/tet/Makefile
+66-0trunk/test/tet/tet/Makefile
+0-28trunk/test/Makefile
+1-1trunk/mk/elftoolchain.tet.mk
+1-1trunk/mk/elftoolchain.tetvars.mk
+0-0trunk/test/tet/elfdump/
+68-96127 files not shown
+68-96133 files

ELF Tool Chain/elftoolchain 4028trunk/common/sys elfconstants.m4

Add NetBSD spellings of IA64 relocation types.
DeltaFile
+74-0trunk/common/sys/elfconstants.m4
+74-01 files

ELF Tool Chain/elftoolchain 4027trunk/tools compare-elf-symbols.sh

Add a helper script to compare OS symbol definitions with Elftoolchain sources.
DeltaFile
+189-0trunk/tools/compare-elf-symbols.sh
+189-01 files

ELF Tool Chain/elftoolchain 4026trunk/common/sys elfconstants.m4

Add X86_64 symbols from NetBSD.
DeltaFile
+2-0trunk/common/sys/elfconstants.m4
+2-01 files

ELF Tool Chain/elftoolchain 4025trunk/test/ar/plugin ardiff.c teraser.c, trunk/test/elfcopy/plugin teraser.c ardiff.c

Prevent indent(1) from reflowing pre-formatted text.

DeltaFile
+3-1trunk/test/ar/plugin/ardiff.c
+2-1trunk/test/ar/plugin/teraser.c
+2-1trunk/test/elfcopy/plugin/teraser.c
+2-1trunk/test/elfcopy/plugin/ardiff.c
+9-44 files

ELF Tool Chain/elftoolchain 4024trunk/common uthash.h utarray.h

Upgrade ut{array,hash}.h to v2.3.0 preserving [r3983].

This version contains upstream equivalents for [r2692]
(preserving 'const'-ness) and [r3912] (the inclusion of
<stdint.h>).
DeltaFile
+25-41trunk/common/uthash.h
+5-4trunk/common/utarray.h
+30-452 files

ELF Tool Chain/elftoolchain 4023trunk/libelftc make-toolchain-version

make-toolchain-version: Handle full SVN checkouts.

This change allows the script to work with SVN checkouts of '$SVNROOT'
and '$SVNROOT/trunk'.

While here, update a comment to reflect FreeBSD's move from Subversion
to git.
DeltaFile
+3-2trunk/libelftc/make-toolchain-version
+3-21 files

ELF Tool Chain/elftoolchain 4022trunk/ar os.Linux.mk

Unbreak the build of 'ar' on Ubuntu 22.
DeltaFile
+4-0trunk/ar/os.Linux.mk
+4-01 files

ELF Tool Chain/elftoolchain 4021trunk/mk os.Linux.mk

Do not build shared libraries on GNU/Linux.

This change unbreaks the build on Ubuntu 22.04.
DeltaFile
+1-1trunk/mk/os.Linux.mk
+1-11 files

ELF Tool Chain/elftoolchain 4020trunk/readelf readelf.c

readelf: fix a compilation warning with -Werror=format-truncation.

Ticket:         #617
DeltaFile
+8-2trunk/readelf/readelf.c
+8-21 files