ELF Tool Chain/elftoolchain 3780

Follow the common *BSD idiom for handling 'argc'
and 'argv' with getopt(3),

Submitted by:   Mark Johnston on -developers
DeltaFile
+0-00 files

ELF Tool Chain/elftoolchain 3779

Update the manual page for strip(1) to reflect the behavior added in [r3778].
DeltaFile
+0-00 files

ELF Tool Chain/elftoolchain 3778

Restrict processing to a single input file when
the "-o outputfile" option is used.

Pointed out by: Mark Johnston on -developers
DeltaFile
+0-00 files

ELF Tool Chain/elftoolchain 3777

elfcopy: Clear errors after fetching the shstrtab index.

Otherwise a future call to elf_errno() will return a non-zero value.
update_shdr(), for example, treats any errors associated with the ELF
descriptor as fatal.  Clear the error per the first example in
elf_errmsg.3.

Convert to elf_getshdrstrndx() while here since elf_getshstrndx() is
apparently deprecated.

Obtained from FreeBSD r349730 by markj.
DeltaFile
+0-00 files

ELF Tool Chain/elftoolchain 3776

Change the currently supported NetBSD version to 8.1/amd64.
DeltaFile
+0-00 files

ELF Tool Chain/elftoolchain 3775

Unbreak the build on FreeBSD 11.2.

Ticket:        #573
DeltaFile
+0-00 files

ELF Tool Chain/elftoolchain 3774

Build tests on OpenBSD by default.
DeltaFile
+0-00 files

ELF Tool Chain/elftoolchain 3773

Define the installed location of -larchive on OpenBSD.
DeltaFile
+0-00 files

ELF Tool Chain/elftoolchain 3772

Unbreak the build of the libdwarf test suite on OpenBSD 6.5.
DeltaFile
+0-00 files

ELF Tool Chain/elftoolchain 3771

Update a version number that had been overlooked out in [r3770].
DeltaFile
+0-00 files

ELF Tool Chain/elftoolchain 3770

Update the build instructions for OpenBSD 6.5.
DeltaFile
+0-00 files

ELF Tool Chain/elftoolchain 3769

Add FreeBSD note types missed in r3766

And replace NT_FREEBSD_FCTL_ASLR_DISABLE with 0x1 for now.
DeltaFile
+0-00 files

ELF Tool Chain/elftoolchain 3768

Add DF_1 flags missed in r3765
DeltaFile
+0-00 files

ELF Tool Chain/elftoolchain 3767

readelf: display NT_GNU_PROPERTY_TYPE_0 note name

NT_GNU_PROPERTY_TYPE_0 in a .note.gnu.property section "contains a
program property note which describes special handling requirements
for linker and run-time loader." (from the System V Application Binary
Interface - Linux Extensions")

Intel CET uses two processor-specific program properties in
NT_GNU_PROPERTY_TYPE_0: GNU_PROPERTY_X86_FEATURE_1_IBT to indicate that
all executable sections are compatible with Indirect Branch Tracking,
and GNU_PROPERTY_X86_FEATURE_1_SHSTK to indicate that sections are
compatible with shadow stack.

A later change should add decoding of the individual properties.

Obtained from FreeBSD r337569 by emaste.
DeltaFile
+0-00 files

ELF Tool Chain/elftoolchain 3766

readelf: decode FreeBSD note types

Decode NT_FREEBSD_ABI_TAG, NT_FREEBSD_ARCH_TAG, and
NT_FREEBSD_FEATURE_CTL.

Obtained from FreeBSD r343669 by emaste.
DeltaFile
+0-00 files

ELF Tool Chain/elftoolchain 3765

readelf: decode flag bits in DT_FLAGS/DT_FLAGS_1

Decode d_val when the tag is DT_FLAGS or DT_FLAGS_1 based on the
information at:

https://docs.oracle.com/cd/E23824_01/html/819-0690/chapter6-42444.html

Original version submitted by Bora Özarslan <borako.ozarslan at gmail.com>
Obtained from FreeBSD r343592, r343593, r343665 by emaste.
DeltaFile
+0-00 files

ELF Tool Chain/elftoolchain 3764

libelf: add config for RISC-V ISA

Obtained from FreeBSD r294664 by br.
DeltaFile
+0-00 files

ELF Tool Chain/elftoolchain 3763

libelf: assert that msz is non-zero

Reported by FreeBSD Coverity, CID 976023

Obtained from FreeBSD r316685 by emaste.
DeltaFile
+0-00 files

ELF Tool Chain/elftoolchain 3762

elfdump: add OpenBSD ELF program header types

Obtained from FreeBSD r348776 by csjp.
DeltaFile
+0-00 files

ELF Tool Chain/elftoolchain 3761

readelf: print description for 'e_flags' in ELF header (ABI type)

This prints out description text with the meaning of 'Flags' value in
PowerPC64.

Submitted by alfredo.junior_eldorado.org.br
Obtained from FreeBSD r349510 by luporl.
DeltaFile
+0-00 files

ELF Tool Chain/elftoolchain 3760

readelf: report byte size for DT_PREINIT_ARRAYSZ

Obtained from FreeBSD r327219 by emaste.
DeltaFile
+0-00 files

ELF Tool Chain/elftoolchain 3759

readelf: dump ELF note data

Output format is compatible with GNU readelf's handling of unknown note
types (modulo a GNU char signedness bug); future changes will add type-
specific decoding.

Obtained from FreeBSD r343614 by emaste.
DeltaFile
+0-00 files

ELF Tool Chain/elftoolchain 3758

elfcopy: Provide a size hint when creating the section string table.

Use the input file's .shstrtab size as the hint if it exists.  This
gives a small performance improvement when processing files with
many sections.

Obtained from FreeBSD r349423 by markj.
DeltaFile
+0-00 files

ELF Tool Chain/elftoolchain 3757

elfcopy: Use libelftc's string table routines to build .shstrtab.

This replaces some hand-rolled routines and is substantially faster
since libelftc uses a hash table for lookups and insertions, whereas
elfcopy would perform a linear scan of the table.

Obtained from FreeBSD r348657 by markj.
DeltaFile
+0-00 files

ELF Tool Chain/elftoolchain 3756

elfcopy: Use elf_getscn() instead of iterating over all sections

When removing a section, we would loop over all sections looking for
a corresponding relocation section.  With r348652 it is much faster
to just use elf_getscn().

Obtained from FreeBSD r348654 by markj.
DeltaFile
+0-00 files

ELF Tool Chain/elftoolchain 3754

elfcopy: Pass the right sizes to malloc() and realloc()

Obtained from FreeBSD r336226 by markj.
DeltaFile
+0-00 files

ELF Tool Chain/elftoolchain 3755

elfcopy: Optimize for insertions at the end of the section list

This is the common case when strip(1) is creating the output file.
The change provides a significant speedup when running on ELF files with
many sections.

Obtained from FreeBSD r348431 by markj.
DeltaFile
+0-00 files

ELF Tool Chain/elftoolchain 3753

readelf: Make -t imply -S, for compatibility with GNU binutils

Obtained from FreeBSD r348443 by markj.
DeltaFile
+0-00 files

ELF Tool Chain/elftoolchain 3752

libelftc: add RISC-V bfd targets

This adds the following targets: elf32-riscv, elf64-riscv,
elf64-riscv-freebsd

Obtained from FreeBSD r349483 by mhorne.
DeltaFile
+0-00 files

ELF Tool Chain/elftoolchain 3750

libelftc: Fix some minor style bugs

Obtained from FreeBSD r348655 by markj.
DeltaFile
+0-00 files

ELF Tool Chain/elftoolchain 3751

libelftc: readelf: decode R_MIPS_HIGHER and R_MIPS_HIGHEST relocation types

Obtained from FreeBSD r340075 by emaste.
DeltaFile
+0-00 files

ELF Tool Chain/elftoolchain 3748

libdwarf: Use the cached strtab pointer when reading string attributes.

Previously we would perform a linear search of the DWARF section
list for ".debug_str".  However, libdwarf always caches a pointer to
the strtab image in its debug descriptor.  Using it gives a modest
performance improvement when iterating over the attributes of each
DIE.

Obtained from FreeBSD r349424 by markj.
DeltaFile
+0-00 files

ELF Tool Chain/elftoolchain 3749

libdwarf: add DW_LANG_* definitions from DWARF 4 and 5

Obtained from FreeBSD r334881 by markj.
DeltaFile
+0-00 files

ELF Tool Chain/elftoolchain 3744

libelftc: Consistently use size_t for string table offsets and sizes

Obtained from FreeBSD r349421 by markj.
DeltaFile
+0-00 files

ELF Tool Chain/elftoolchain 3747

elfcopy: Remove an unneeded memset

Obtained from FreeBSD r348430 by markj.
DeltaFile
+0-00 files

ELF Tool Chain/elftoolchain 3746

libelftc: Micro-optimize string table insertion

The string's length is already known, so use memcpy() instead of
strcpy() to add it to the string table image.

Obtained from FreeBSD r349420 by markj.
DeltaFile
+0-00 files

ELF Tool Chain/elftoolchain 3745

libelftc: Fix the documented prototype for elftc_string_table_destroy()

Obtained from FreeBSD r349422 by markj.
DeltaFile
+0-00 files

ELF Tool Chain/elftoolchain 3743

Incorporate manual page fixes from OpenBSD.

Submitted by:   Sunil Nimmagadda
DeltaFile
+0-00 files

ELF Tool Chain/elftoolchain 3742

Ensure that the value of a 32-bit parameter passed
to the ELF64_R_INFO() macro does not get lost.

Submitted by:   Michael Forney on -developers
DeltaFile
+0-00 files

ELF Tool Chain/elftoolchain 3741

Incorporate FreeBSD r348347: "Add missing powerpc64
relocation support to libdwarf".

Submitted by: Brandon Bergren (on -developers)
DeltaFile
+0-00 files

ELF Tool Chain/elftoolchain 3740

Verify that only one of the LIBELF_F_RAWFILE_{MALLOC,MMAP}
flags is set on an ELF descriptor.
DeltaFile
+0-00 files

ELF Tool Chain/elftoolchain 3739

Bug fix: use integer literals of the correct size.

Found by:       Coverity Scan
DeltaFile
+0-00 files

ELF Tool Chain/elftoolchain 3738

Improve an internal API: a return type of 'void'
would be a better fit for an internal function that
never returns a usable value.
DeltaFile
+0-00 files

ELF Tool Chain/elftoolchain 3737

Eliminate an always true sub-expression.

Pointed out by:        Sunil Nimmagadda
DeltaFile
+0-00 files

ELF Tool Chain/elftoolchain 3736

Add a few assertions.

Submitted by:   Sunil Nimmagadda
DeltaFile
+0-00 files

ELF Tool Chain/elftoolchain 3735

Recognize the PPC64 architecture.

Submitted by: Dr N.W. Filardo on -developers
DeltaFile
+0-00 files

ELF Tool Chain/elftoolchain 3734

Document the additional errors possible for the APIs
updated by revision r3732.
DeltaFile
+0-00 files

ELF Tool Chain/elftoolchain 3733

Unbreak 'make test'.
DeltaFile
+0-00 files

ELF Tool Chain/elftoolchain 3732

Handle error returns from the _libelf_msize() helper
function consistently.

Pointed out by: Sunil Nimmagadda on -developers
DeltaFile
+0-00 files

ELF Tool Chain/elftoolchain 3731

Use a version string of 'unknown:unknown' instead of
exiting with an error when the current source tree
version cannot be determined.
DeltaFile
+0-00 files