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

Add LoongArch relocations.

Submitted by:   Haowu Ge
Ticket:         #623
DeltaFile
+122-0trunk/common/sys/elfconstants.m4
+122-01 files

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

Note that an ELF machine type value of 267 denotes the LoongArch GPU.

While here, correct the spelling of 'LoongArch'.

Obtained from: The Generic ABI mailing list (https://groups.google.com/g/generic-abi/c/9tr9IcCbWnE/m/2rbi5xTeAQAJ)
DeltaFile
+1-1trunk/common/sys/elfconstants.m4
+1-11 files

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

Catch up with the list of currently allocated ELF machine types.

Obtained from: The Generic ABI discussion list [https://groups.google.com/g/generic-abi/c/0kORSDcyhTE]
DeltaFile
+34-0trunk/common/sys/elfconstants.m4
+34-01 files

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

Bug fix: spell 'LoongArch' correctly.

Pointed out by: Haowu Ge
Ticket:         #623
DeltaFile
+1-1trunk/common/sys/elfconstants.m4
+1-11 files

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

Add an ELF machine type value for the Loongarch architecture.

Ticket:         #623
DeltaFile
+3-1trunk/common/sys/elfconstants.m4
+3-11 files

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

Minor: sort a list of ISA identifiers in a comment.
DeltaFile
+2-2trunk/common/sys/elfconstants.m4
+2-21 files

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

ELF Tool Chain/elftoolchain 4034trunk/test/tet/elfcopy/tc/strip-all-4/out strip-all-4.out.shar, trunk/test/tet/elfcopy/tc/strip-all-5/in strip-all-5.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-4/out/strip-all-4.out.shar
+0-0trunk/test/tet/elfcopy/tc/strip-all-5/in/strip-all-5.in.shar
+0-0trunk/test/tet/elfcopy/tc/strip-all-5/out/strip-all-5.out.shar
+0-0trunk/test/tet/elfcopy/tc/strip-all-6/in/strip-all-6.in.shar
+0-0trunk/test/tet/elfcopy/tc/strip-all-6/out/strip-all-6.out.shar
+0-0trunk/test/tet/elfcopy/tc/strip-all-7/in/strip-all-7.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_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_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-0trunk/test/tet/nm/ts/nm_archive1/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_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/dwarf_attrlist/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

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/tet/libdwarf/ts/dwarf_die_convenience/Makefile
+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