ELF Tool Chain/elftoolchain 4262trunk/common/sys elfconstants.m4 elfdefinitions.m4

common: Update the set of known SYMINFO_* constants.
DeltaFile
+34-16trunk/common/sys/elfconstants.m4
+11-6trunk/common/sys/elfdefinitions.m4
+45-222 files

ELF Tool Chain/elftoolchain 4261trunk/common/sys elfconstants.m4 elfdefinitions.m4

common: Rework the M4 macros for ELF note types.

This change groups related definitions together, to ease adding
additional note types in the future.
DeltaFile
+36-15trunk/common/sys/elfconstants.m4
+3-3trunk/common/sys/elfdefinitions.m4
+39-182 files

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

elfconstants: add gABI v4.3(DRAFT) symbol DT_SYMTABSZ.
DeltaFile
+2-0trunk/common/sys/elfconstants.m4
+2-01 files

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

elfconstants: remove DT_MAXPOSTAGS.

This symbol holds the number of small-valued DT_* tags known
at compile time.

However, ELF files in the wild could contain DT_* tags that
are not known at compile time and/or could contain known
but non-small-valued tags in the range DT_LOOS (0x6000000D)
to DT_HIPROC (0x7FFFFFFF).  ELF-handling tools are expected
to handle such tags gracefully, which means that the value of
DT_MAXPOSTAGS is not useful in practice.

Remove the symbol to reduce maintenance overhead.
DeltaFile
+0-2trunk/common/sys/elfconstants.m4
+0-21 files

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

readelf: Ignore DT_MAXPOSTAGS.

This value is a sentinel, not an actual dynamic linking
tag.
DeltaFile
+0-1trunk/readelf/readelf.c
+0-11 files

ELF Tool Chain/elftoolchain 4257trunk/common/sys elfdefinitions.m4

common: Add C definitions for relative relocation entries.
DeltaFile
+5-0trunk/common/sys/elfdefinitions.m4
+5-01 files

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

common: Add ABI constants from v4.3(DRAFT) of the gABI.
DeltaFile
+11-1trunk/common/sys/elfconstants.m4
+11-11 files

ELF Tool Chain/elftoolchain 4255trunk/tests/tet/libelf/tset/elf_getarhdr getarhdr.m4

libelf/testsuite: Check archive member timestamps returned by elf_getarhdr(3).

DeltaFile
+10-0trunk/tests/tet/libelf/tset/elf_getarhdr/getarhdr.m4
+10-01 files

ELF Tool Chain/elftoolchain 4254trunk/libelf elf_getarhdr.3

libelf: Document the ELF_E_ARCHIVE signalled by elf_getarhdr(3)
after [r4251].
DeltaFile
+5-1trunk/libelf/elf_getarhdr.3
+5-11 files

ELF Tool Chain/elftoolchain 4253trunk/tests/tet/libelf/tset/elf_update update.m4

libelf/testsuite: Only update Elf_Data fields that use non-default values.

This change avoids redundant assignment statements in generated test
code.
DeltaFile
+23-16trunk/tests/tet/libelf/tset/elf_update/update.m4
+23-161 files

ELF Tool Chain/elftoolchain 4252trunk/libelf libelf_ar.c

libelf: (bug fix) Parse the date field in ar(1) headers.
DeltaFile
+5-0trunk/libelf/libelf_ar.c
+5-01 files

ELF Tool Chain/elftoolchain 4251trunk/libelf libelf_ar.c

libelf: Signal ELF_E_ARCHIVE for ar(1) archives with an invalid header.
DeltaFile
+2-0trunk/libelf/libelf_ar.c
+2-01 files

ELF Tool Chain/elftoolchain 4250trunk/libelf libelf_ar_util.c

libelf: Reject ar(1) header fields with digits larger than their expected base.
DeltaFile
+1-1trunk/libelf/libelf_ar_util.c
+1-11 files

ELF Tool Chain/elftoolchain 4249trunk/tests/tet/libelf/tset/elf_getarhdr getarhdr.m4

libelf/testsuite: Add tests for ar(1) archive handling.

These tests verify that ar(1) archives with unparseable archive
headers are flagged appropriately.
DeltaFile
+100-0trunk/tests/tet/libelf/tset/elf_getarhdr/getarhdr.m4
+100-01 files

ELF Tool Chain/elftoolchain 4248trunk/tests/custom/ar/plugin ardiff.c

ar/testsuite: Handle potential file access errors.

Detected by:    Coverity Scan
DeltaFile
+17-10trunk/tests/custom/ar/plugin/ardiff.c
+17-101 files

ELF Tool Chain/elftoolchain 4247trunk/tests/tet/libelf/tset/common elfts-compare-files.c

libelf/testsuite: pass the correct address range to munmap().

Detected by:    Coverity Scan
DeltaFile
+6-3trunk/tests/tet/libelf/tset/common/elfts-compare-files.c
+6-31 files

ELF Tool Chain/elftoolchain 4246trunk/tests/tet/libelf/tset/elf_begin begin.m4

libelf/testsuite: Improve error handling during test case setup.

Detected by:    Coverity Scan
DeltaFile
+9-2trunk/tests/tet/libelf/tset/elf_begin/begin.m4
+9-21 files

ELF Tool Chain/elftoolchain 4245trunk/addr2line addr2line.c

addr2line: Handle DWARF parsing failures.

Detected by:    Coverity Scan
DeltaFile
+6-4trunk/addr2line/addr2line.c
+6-41 files

ELF Tool Chain/elftoolchain 4244trunk/ar write.c

ar: Fix a potential resource leak.

Detected by:    Coverity Scan
DeltaFile
+3-3trunk/ar/write.c
+3-31 files

ELF Tool Chain/elftoolchain 4243trunk/libelftc libelftc_dem_gnu3.c

libelftc: Release resources on error.

Detected by:    Coverity Scan
DeltaFile
+1-1trunk/libelftc/libelftc_dem_gnu3.c
+1-11 files

ELF Tool Chain/elftoolchain 4242trunk/libelf libelf_open.c

libelf: Avoid a potential underflow on multiplication.

Detected by:    Coverity Scan
DeltaFile
+7-0trunk/libelf/libelf_open.c
+7-01 files

ELF Tool Chain/elftoolchain 4241trunk/strings strings.c

strings: Ensure that a variable is wide enough to hold an EOF.

Detected by:    Coverity Scan
DeltaFile
+2-2trunk/strings/strings.c
+2-21 files

ELF Tool Chain/elftoolchain 4240trunk/tests/custom/elfcopy/plugin ardiff.c

elfcopy/testsuite: Handle potential file access errors.

Detected by:    Coverity Scan
DeltaFile
+17-10trunk/tests/custom/elfcopy/plugin/ardiff.c
+17-101 files

ELF Tool Chain/elftoolchain 4239trunk/tests/custom/ar/plugin teraser.c

ar/testsuite: Only close valid file descriptors.

Detected by:    Coverity Scan
DeltaFile
+4-1trunk/tests/custom/ar/plugin/teraser.c
+4-11 files

ELF Tool Chain/elftoolchain 4238trunk/tests/libtest/driver driver.c

libtest: Handle potential failure of strdup().
DeltaFile
+6-2trunk/tests/libtest/driver/driver.c
+6-21 files

ELF Tool Chain/elftoolchain 4237trunk/tests/libtest/driver driver.c

libtest: Handle a search path comprised entirely of separator characters.

Detected by:    Coverity Scan
DeltaFile
+2-1trunk/tests/libtest/driver/driver.c
+2-11 files

ELF Tool Chain/elftoolchain 4236trunk/tests/libtest/driver driver.c driver_main.c

libtest: Fix resource leaks and null dereferences.

Detected by:    Coverity Scan
DeltaFile
+38-20trunk/tests/libtest/driver/driver.c
+5-3trunk/tests/libtest/driver/driver_main.c
+43-232 files

ELF Tool Chain/elftoolchain 4235trunk/mk elftoolchain.tet.mk

mk: Add a make(1) target to directly execute a TET-based test.
DeltaFile
+5-0trunk/mk/elftoolchain.tet.mk
+5-01 files

ELF Tool Chain/elftoolchain 4234trunk/tests/tet/libelf/tset/common elfts.h

libelf/testsuite: Fix bugs introduced in [r4228].

Detected by:    Coverity Scan
DeltaFile
+1-1trunk/tests/tet/libelf/tset/common/elfts.h
+1-11 files

ELF Tool Chain/elftoolchain 4233trunk/tests/tet/libelf/tset/elf_end end.m4, trunk/tests/tet/libelf/tset/elf_memory memory.m4

libelf/testsuite: Fix potential resource leaks during test case cleanup.

Detected by:    Coverity Scan
DeltaFile
+18-5trunk/tests/tet/libelf/tset/elf_end/end.m4
+4-2trunk/tests/tet/libelf/tset/elf_memory/memory.m4
+22-72 files