elfutils:users/marxin/try-zstd-support-v2

Last commit made on 2022-12-21
Get this branch:
git clone -b users/marxin/try-zstd-support-v2 https://git.launchpad.net/elfutils

Branch merges

Branch information

Name:
users/marxin/try-zstd-support-v2
Repository:
lp:elfutils

Recent commits

1b845fd... by Martin Liska

support ZSTD compression algorithm

6ecd164... by Mark J. Wielaard

Do not use relative include paths in library files.

Rely on include dirs being set up correctly. Setup libdw AM_CPPFLAGS
to include libebl directory. In libdwfl note that debuginfod.h is a
generated file in the builddir. Only include it in the one file
debuginfod-client.c that really needs it.

Signed-off-by: Mark Wielaard <email address hidden>

13a4d12... by Hengqi Chen <email address hidden>

Add support for LoongArch

This implements initial support for the LoongArch architecture.

Signed-off-by: Hengqi Chen <email address hidden>

9c136cb... by Gavin Li <email address hidden>

libdwfl: Read no more than required in dwfl_segment_report_module

Since read_portion and the standard dwfl_elf_phdr_memory_callback
functions make sure to read at least minread bytes there is no need
for dwfl_segment_report_module to check and adjust the data to the
actual buffer size read. Reading beyond the end of the expected data
size (if the buffer read is much larger) actually causes issues when
passing the data to elfXX_xlatetom() because it is possible that
src->d_size is not a multiple of recsize (for ELF_T_DYN, recsize is 16
while the minimum required alignment is 8), causing elfXX_xlatetom()
to return ELF_E_INVALID_DATA.

Signed-off-by: Gavin Li <email address hidden>
Signed-off-by: Mark Wielaard <email address hidden>

78dd3b3... by Yonggang Luo

libdw: Change typeof -> __typeof in memory-access.h

Signed-off-by: Yonggang Luo <email address hidden>

dab89fb... by Yonggang Luo

libcpu: Use "#define FCT_mod$64r_m FCT_mod$r_m" in i386_data.h

This is enough and can be recognized by clang-cl on windows

Signed-off-by: Yonggang Luo <email address hidden>

86347d8... by Mark J. Wielaard

libelf: Sync elf.h from glibc

Adds various new ARC related declarations.

Signed-off-by: Mark Wielaard <email address hidden>

6bb3e0b... by Martin Liska

Refactor elf_compare

src/ChangeLog:

 * elfcompress.c (T_UNSET): Remove and use ch_type.
 (T_DECOMPRESS): Likewise.
 (T_COMPRESS_ZLIB): Likewise.
 (T_COMPRESS_GNU): Likewise.
 (enum ch_type): New.
 (parse_opt): Parse to new ch_type.
 (compress_section): Change gnu and compress arguments
 to schtype (source compression) and dchtype (destination
 compression).
 (process_file): Use new enum type and adjusted compress_section.

98bdf53... by Martin Liska

Missing newline for: elfcompress -t zlib-gnu a.out -force

Fixes:
./src/elfcompress -t zlib-gnu a.out -force
[28] .zdebug_aranges unchanged, already GNU compressed[29] .zdebug_info unchanged, already GNU compressed[30] .zdebug_abbrev unchanged, already GNU compressed[31] .zdebug_line unchanged, already GNU compressed[32] .zdebug_str unchanged, already GNU compressed[33] .zdebug_line_str unchanged, already GNU compressed[34] .zdebug_rnglists unchanged, already GNU compressed

to:
./src/elfcompress -t zlib-gnu a.out -force
[28] .zdebug_aranges unchanged, already GNU compressed
[29] .zdebug_info unchanged, already GNU compressed
[30] .zdebug_abbrev unchanged, already GNU compressed
[31] .zdebug_line unchanged, already GNU compressed
[32] .zdebug_str unchanged, already GNU compressed
[33] .zdebug_line_str unchanged, already GNU compressed
[34] .zdebug_rnglists unchanged, already GNU compressed

src/ChangeLog:

 * elfcompress.c (process_file): Add missing newline.

2e42dc4... by Martin Liska

readelf: print warning for -sW

The option -s accepts in elfutils (compared to binutils) a positional
argument that is name of a symbol table section which should be printed.

Thus, print a reasonable warning if -sW is used:
./src/readelf -sW a.out
WARNING: cannot find section: 'W'

PR29719

src/ChangeLog:

 * readelf.c (print_symtab): Change signature and return true if
 something is printed.
 (process_elf_file): Use it and print warning.

tests/ChangeLog:

 * run-readelf-s.sh: Test -sW.