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, trunk/mk elftoolchain.test.mk elftoolchain.tetbase.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.test.mk
+1-1trunk/mk/elftoolchain.tetbase.mk
+1-1trunk/mk/elftoolchain.tetvars.mk
+1-1trunk/mk/elftoolchain.tet.mk
+0-0trunk/tests/libtest/driver/Makefile
+9-92 files not shown
+9-98 files

ELF Tool Chain/elftoolchain 4034trunk/test/tet/ar/tc/addself-liba/in addself-liba.in.shar, trunk/test/tet/ar/tc/addself-liba/out addself-liba.out.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-unneeded-2/out/strip-unneeded-2.out.shar
+0-0trunk/test/tet/elfcopy/tc/elfcopy-noops-3/in/elfcopy-noops-3.in.shar
+0-0trunk/test/tet/ar/tc/addself-liba/in/addself-liba.in.shar
+0-0trunk/test/tet/ar/tc/addself-liba/out/addself-liba.out.shar
+0-0trunk/test/tet/ar/tc/archive-liba/in/archive-liba.in.shar
+0-0trunk/test/tet/ar/tc/archive-liba/out/archive-liba.out.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_archive1 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_archive1/test_ar.uu
+0-0trunk/test/tet/nm/ts/nm_debug/test_obj.uu
+0-0trunk/test/tet/nm/ts/nm_object1/test_obj.uu
+0-0trunk/test/tet/nm/ts/nm_object2/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-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/dwarf_die_query/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_next_cu_header/ld_symver.o-64-g1.xml.gz
+0-0trunk/test/tet/libdwarf/ts/common/object/ld_symver.o-64-g1.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 libelftc

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
+66-0trunk/test/tet/tet/Makefile
+0-66trunk/test/tet/Makefile
+0-28trunk/test/Makefile
+1-1trunk/mk/elftoolchain.tet.mk
+1-1trunk/mk/elftoolchain.tetvars.mk
+0-0trunk/test/libelftc/
+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 ardiff.c teraser.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/ardiff.c
+2-1trunk/test/elfcopy/plugin/teraser.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

ELF Tool Chain/elftoolchain 4019trunk/libdwarf libdwarf_lineno.c libdwarf.h

Add initial support for the revised DWARF5 line number section header.

Ticket: #611
DeltaFile
+395-62trunk/libdwarf/libdwarf_lineno.c
+7-0trunk/libdwarf/libdwarf.h
+3-3trunk/libdwarf/libdwarf_attr.c
+1-0trunk/libdwarf/_libdwarf.h
+406-654 files

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

Implemented dumping DWARF5 .debug_line section.

While here, also improved the output format to make it more look alike
the recent binutils readelf.
DeltaFile
+409-217trunk/readelf/readelf.c
+409-2171 files

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

Add support for displaying DWARF5 indirect line string.
DeltaFile
+4-1trunk/readelf/readelf.c
+4-11 files

ELF Tool Chain/elftoolchain 4016trunk/libdwarf libdwarf_str.c libdwarf_attr.c

Add support for DWARF5 .debug_line_str section.

Ticket: #611
DeltaFile
+15-1trunk/libdwarf/libdwarf_str.c
+3-2trunk/libdwarf/libdwarf_attr.c
+3-1trunk/libdwarf/_libdwarf.h
+2-1trunk/libdwarf/dwarf_form.c
+2-1trunk/libdwarf/libdwarf_elf_init.c
+25-65 files

ELF Tool Chain/elftoolchain 4015trunk/libdwarf dwarf_attrval.c

dwarf_attrval_unsigned() should accept DW_FORM_sec_offset.

This fixes a use case for readelf: readelf uses this call to fetch
the value for DW_AT_stmt_list, which use this form to refer
to an offset in .debug_line section.
DeltaFile
+1-0trunk/libdwarf/dwarf_attrval.c
+1-01 files

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

Add support for displaying DWARF5 unit type in .debug_info dump.
DeltaFile
+18-6trunk/readelf/readelf.c
+18-61 files

ELF Tool Chain/elftoolchain 4013trunk/libdwarf dwarf_next_cu_header.3 dwarf_cu.c

Implemented new API dwarf_next_cu_header_d().

Comparing with dwarf_next_cu_header_c(), this new revision adds support
for returning the DWARF5 unit type.
DeltaFile
+43-11trunk/libdwarf/dwarf_next_cu_header.3
+21-3trunk/libdwarf/dwarf_cu.c
+2-2trunk/libdwarf/libdwarf_info.c
+4-0trunk/libdwarf/libdwarf.h
+70-164 files

ELF Tool Chain/elftoolchain 4012trunk/libdwarf dwarf_dump.c libdwarf.h

Add strings for attributes, forms, tags and unit types added in DWARF5.

Ticket: #611
DeltaFile
+141-1trunk/libdwarf/dwarf_dump.c
+2-1trunk/libdwarf/libdwarf.h
+143-22 files

ELF Tool Chain/elftoolchain 4011trunk/libdwarf dwarf.h

Fix typos.
DeltaFile
+3-3trunk/libdwarf/dwarf.h
+3-31 files