binutils-gdb/ld/emultempl
Fangrui Song 2cac01e3ff binutils, gdb: support zstd compressed debug sections
PR29397 PR29563: Add new configure option --with-zstd which defaults to
auto.  If pkgconfig/libzstd.pc is found, define HAVE_ZSTD and support
zstd compressed debug sections for most tools.

* bfd: for addr2line, objdump --dwarf, gdb, etc
* gas: support --compress-debug-sections=zstd
* ld: support ELFCOMPRESS_ZSTD input and --compress-debug-sections=zstd
* objcopy: support ELFCOMPRESS_ZSTD input for
  --decompress-debug-sections and --compress-debug-sections=zstd
* gdb: support ELFCOMPRESS_ZSTD input.  The bfd change references zstd
  symbols, so gdb has to link against -lzstd in this patch.

If zstd is not supported, ELFCOMPRESS_ZSTD input triggers an error.  We
can avoid HAVE_ZSTD if binutils-gdb imports zstd/ like zlib/, but this
is too heavyweight, so don't do it for now.

```
% ld/ld-new a.o
ld/ld-new: a.o: section .debug_abbrev is compressed with zstd, but BFD is not built with zstd support
...

% ld/ld-new a.o --compress-debug-sections=zstd
ld/ld-new: --compress-debug-sections=zstd: ld is not built with zstd support

% binutils/objcopy --compress-debug-sections=zstd a.o b.o
binutils/objcopy: --compress-debug-sections=zstd: binutils is not built with zstd support

% binutils/objcopy b.o --decompress-debug-sections
binutils/objcopy: zstd.o: section .debug_abbrev is compressed with zstd, but BFD is not built with zstd support
...
```
2022-09-26 19:50:13 -07:00
..
aarch64elf.em bit-rot in target before_parse function 2022-05-26 20:34:32 +09:30
aix.em Re: Get rid of fprintf_vma and sprintf_vma 2022-08-04 12:00:36 +09:30
alphaelf.em Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
arclinux.em Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
armelf.em Get rid of fprintf_vma and sprintf_vma 2022-08-01 13:52:18 +09:30
astring.sed
avrelf.em Add linker warning for when it creates an executable stack. 2022-04-20 13:39:05 +01:00
beos.em ld: Add emultempl/emulation.em 2022-02-06 06:25:41 -08:00
bfin.em Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
cr16elf.em Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
crxelf.em Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
cskyelf.em Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
elf-generic.em Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
elf-x86.em Revert "PR28824, relro security issues, x86 keep COMMONPAGESIZE relro" 2022-02-14 17:39:34 -08:00
elf.em binutils, gdb: support zstd compressed debug sections 2022-09-26 19:50:13 -07:00
emulation.em ld: Add a before_plugin_all_symbols_read hook 2022-03-09 18:23:43 -08:00
epiphanyelf_4x4.em Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
genelf.em Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
generic.em ld: Add emultempl/emulation.em 2022-02-06 06:25:41 -08:00
hppaelf.em Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
ia64elf.em Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
irix.em Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
loongarchelf.em Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
m68hc1xelf.em Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
m68kelf.em Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
metagelf.em Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
mipself.em Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
mmix-elfnmmo.em Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
mmixelf.em Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
mmo.em Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
msp430.em ld: Add emultempl/emulation.em 2022-02-06 06:25:41 -08:00
nds32elf.em Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
needrelax.em Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
netbsd.em Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
nios2elf.em Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
ostring.sed
pdp11.em Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
pe.em ld: pe: Fix linking against Microsoft import libraries with multiple DLLs 2022-08-30 23:49:08 +03:00
pep.em ld: pe: Fix linking against Microsoft import libraries with multiple DLLs 2022-08-30 23:49:08 +03:00
ppc32elf.em Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
ppc64elf.em Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
pruelf.em Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
README Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
riscvelf.em Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
rxelf.em Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
rxlinux.em Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
s390.em Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
scoreelf.em bit-rot in target before_parse function 2022-05-26 20:34:32 +09:30
solaris2-x86.em Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
solaris2.em Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
spu_icache.o_c
spu_icache.S
spu_ovl.o_c
spu_ovl.S Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
spuelf.em Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
tic6xdsbt.em Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
ticoff.em ld: Add emultempl/emulation.em 2022-02-06 06:25:41 -08:00
v850elf.em Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
vanilla.em ld: Add emultempl/emulation.em 2022-02-06 06:25:41 -08:00
vms.em Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
vxworks.em Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
xtensaelf.em Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
z80.em Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

The files in this directory are sourced by genscripts.sh, after
setting some variables to substitute in, to produce
C source files that contain jump tables for each emulation.

Copyright (C) 2012-2022 Free Software Foundation, Inc.

Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.