binutils-gdb/bfd
Michael Matz 13a3cad698 PR30437 aarch64: make RELA relocs idempotent
normally RELA relocs in BFD should not consider the contents of the
relocated place.  The aarch64 psABI is even stricter, it specifies
(section 5.7.16) that all RELA relocs _must_ be idempotent.

Since the inception of the aarch64 BFD backend all the relocs have a
non-zero src_mask, and hence break this invariant.  It's normally not
a very visible problem as one can see it only when the relocated place
already contains a non-zero value, which usually only happens sometimes
when using 'ld -r' (or as in the testcase when jumping through hoops to
generate the relocations).  Or with alternative toolchains that do encode
stuff in the relocated places with the assumption that a relocation
to that place ignores whatever is there (as they can according to
the psABI).

Golang is such a toolchain and https://github.com/golang/go/issues/39927
is ultimately caused by this problem: the testcase testGCData failing
is caused by the garbage collection data-structure to describe a type
containing pointers to be wrong.  It's wrong because a field that's
supposed to contain a file-relative offset (to some gcbits) has a
relocation applied and that relocation has an addend which also is
already part of the go-produced object file (so the addend is
implicitely applied twice).

bfd/
	PR ld/30437
	* elfnn-aarch64.c (elfNN_aarch64_howto_table): Clear src_mask
	if all relocation descriptors.

ld/
	* testsuite/ld-aarch64/rela-idempotent.s: New testcase.
	* testsuite/ld-aarch64/rela-idempotent.d: New.
	* testsuite/ld-aarch64/aarch64-elf.exp: Run it.
2023-05-23 16:43:14 +02:00
..
doc Generated docs and include files 2023-05-03 15:00:05 +09:30
hosts obsolete target tidy 2023-01-02 14:03:22 +10:30
po New georgian translation for the bfd sub-directory 2023-04-24 13:06:18 +01:00
.gitignore PR 29981 references to init.texi 2023-01-10 23:05:31 +10:30
acinclude.m4 Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
aclocal.m4 binutils, gdb: support zstd compressed debug sections 2022-09-26 19:50:13 -07:00
aix5ppc-core.c Enable vector register visibility in core file for AIX binutils 2023-03-19 23:35:18 +10:30
aout32.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
aout64.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
aout-cris.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
aout-ns32k.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
aout-target.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
aoutx.h Fix an aout memory leak 2023-01-06 21:06:16 +10:30
arc-got.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
arc-plt.def Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
arc-plt.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
archive64.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
archive.c Make ar faster 2023-05-03 16:23:13 +01:00
archures.c Generated docs and include files 2023-05-03 15:00:05 +09:30
bfd-in2.h RISC-V: Support subtraction of .uleb128. 2023-05-19 16:24:10 +08:00
bfd-in.h Generated docs and include files 2023-05-03 15:00:05 +09:30
bfd.c Generated docs and include files 2023-05-03 15:00:05 +09:30
bfd.m4 Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
bfdio.c Generated docs and include files 2023-05-03 15:00:05 +09:30
bfdwin.c Generated docs and include files 2023-05-03 15:00:05 +09:30
binary.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
bpf-reloc.def BPF relocations review / refactoring 2023-03-16 09:11:09 +00:00
cache.c Generated docs and include files 2023-05-03 15:00:05 +09:30
cf-i386lynx.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ChangeLog Decorated symbols in import libs (BUG 30421) 2023-05-17 13:38:14 +01:00
ChangeLog-0001
ChangeLog-0203
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
ChangeLog-2008
ChangeLog-2009
ChangeLog-2010
ChangeLog-2011
ChangeLog-2012
ChangeLog-2013
ChangeLog-2014
ChangeLog-2015
ChangeLog-2016
ChangeLog-2017
ChangeLog-2018
ChangeLog-2019
ChangeLog-2020
ChangeLog-9193
ChangeLog-9495
ChangeLog-9697
ChangeLog-9899
cisco-core.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
coff64-rs6000.c Keeping track of rs6000-coff archive element pointers 2023-04-21 11:51:06 +09:30
coff-aarch64.c segv in coff_aarch64_addr32nb_reloc 2023-01-27 08:18:45 +10:30
coff-alpha.c Clear cached file size when bfd changed to BFD_IN_MEMORY 2023-02-09 09:39:45 +10:30
coff-arm.c Tidy pe flag in coff_data 2023-01-06 21:06:15 +10:30
coff-arm.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
coff-bfd.c asan: segfault in coff_mangle_symbols 2023-04-24 20:59:38 +09:30
coff-bfd.h coff keep_relocs and keep_contents 2023-02-09 20:07:55 +10:30
coff-go32.c Make coff backend data read-only 2023-01-06 21:06:15 +10:30
coff-i386.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
coff-ia64.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
coff-loongarch64.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
coff-mcore.c Sanity check coff-sh and coff-mcore sym string offset 2023-03-22 09:06:48 +10:30
coff-mips.c Move mips_refhi_list to bfd tdata 2023-01-10 09:15:51 +10:30
coff-rs6000.c Re: Keeping track of rs6000-coff archive element pointers 2023-04-28 15:19:59 +09:30
coff-sh.c Sanity check coff-sh and coff-mcore sym string offset 2023-03-22 09:06:48 +10:30
coff-stgo32.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
coff-tic4x.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
coff-tic30.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
coff-tic54x.c tic54x set_arch_mach 2023-05-20 10:49:19 +09:30
coff-x86_64.c Re: Add section caches to coff_data_type 2023-05-18 12:21:40 +09:30
coff-z8k.c z8 and z80 coff_reloc16_extra_cases sanity checks 2023-03-08 11:24:50 +10:30
coff-z80.c z8 and z80 coff_reloc16_extra_cases sanity checks 2023-03-08 11:24:50 +10:30
coffcode.h coffcode.h handle_COMDAT tidy 2023-05-20 10:49:19 +09:30
coffgen.c Re: Add section caches to coff_data_type 2023-05-18 12:21:40 +09:30
cofflink.c Decorated symbols in import libs (BUG 30421) 2023-05-17 13:38:14 +01:00
coffswap.h Use stdint types in coff internal_auxent 2023-03-27 21:58:46 +10:30
compress.c Generated docs and include files 2023-05-03 15:00:05 +09:30
config.bfd MIPS: revert "default r6 if vendor is img" 2023-05-04 09:45:22 +08:00
config.in Faster string merging 2023-01-20 14:58:04 +01:00
configure Faster string merging 2023-01-20 14:58:04 +01:00
configure.ac Faster string merging 2023-01-20 14:58:04 +01:00
configure.com Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
configure.host Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
COPYING
corefile.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-aarch64.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-aarch64.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-alpha.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-amdgcn.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-arc.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-arm.c Test SEC_HAS_CONTENTS before reading section contents 2023-02-23 12:58:53 +10:30
cpu-arm.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-avr.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-bfin.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-bpf.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-cr16.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-cris.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-crx.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-csky.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-d10v.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-d30v.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-dlx.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-epiphany.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-fr30.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-frv.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-ft32.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-h8300.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-h8300.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-hppa.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-i386.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-ia64-opc.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-ia64.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-iamcu.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-ip2k.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-iq2000.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-lm32.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-loongarch.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-m9s12x.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-m9s12xg.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-m32c.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-m32r.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-m68hc11.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-m68hc12.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-m68k.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-m68k.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-m10200.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-m10300.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-mcore.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-mep.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-metag.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-microblaze.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-mips.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-mmix.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-moxie.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-msp430.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-mt.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-nds32.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-nfp.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-nios2.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-ns32k.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-or1k.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-pdp11.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-pj.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-powerpc.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-pru.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-riscv.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-riscv.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-rl78.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-rs6000.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-rx.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-s12z.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-s390.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-score.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-sh.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-sparc.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-spu.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-tic4x.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-tic6x.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-tic30.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-tic54x.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-tilegx.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-tilepro.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-v850_rh850.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-v850.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-vax.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-visium.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-wasm32.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-xgate.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-xstormy16.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-xtensa.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-z8k.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cpu-z80.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
dep-in.sed
development.sh Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
dwarf1.c Tidy dwarf1 cached section contents 2023-03-24 21:01:43 +10:30
dwarf2.c ubsan: dwarf2.c:2232:7: runtime error: index 16 out of bounds 2023-04-12 09:40:14 +09:30
ecoff-bfd.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ecoff.c buffer overflow in print_symname 2023-04-20 09:03:53 +09:30
ecofflink.c More _bfd_ecoff_locate_line sanity checks 2023-03-06 13:11:22 +10:30
ecoffswap.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-am33lin.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-arc.c Test SEC_HAS_CONTENTS in relax routines 2023-02-23 12:58:53 +10:30
elf32-arm.c Debug info is lost for functions only called from functions marked with cmse_nonsecure_entr 2023-05-05 11:11:32 +01:00
elf32-arm.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-avr.c Test SEC_HAS_CONTENTS in relax routines 2023-02-23 12:58:53 +10:30
elf32-avr.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-bfin.c Use __func__ rather than __FUNCTION__ 2023-01-12 17:20:21 +10:30
elf32-bfin.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-cr16.c Test SEC_HAS_CONTENTS in relax routines 2023-02-23 12:58:53 +10:30
elf32-cr16.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-cris.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-crx.c Test SEC_HAS_CONTENTS in relax routines 2023-02-23 12:58:53 +10:30
elf32-csky.c gcc-4.5 build fixes 2023-05-17 11:21:43 +09:30
elf32-csky.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-d10v.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-d30v.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-dlx.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-dlx.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-epiphany.c Test SEC_HAS_CONTENTS in relax routines 2023-02-23 12:58:53 +10:30
elf32-fr30.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-frv.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-ft32.c Test SEC_HAS_CONTENTS in relax routines 2023-02-23 12:58:53 +10:30
elf32-gen.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-h8300.c Test SEC_HAS_CONTENTS in relax routines 2023-02-23 12:58:53 +10:30
elf32-hppa.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-hppa.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-i386.c ld: Allow R_386_GOT32 for call *__tls_get_addr@GOT(%reg) 2023-03-10 11:55:09 -08:00
elf32-ip2k.c ip2k: don't look at stab sections without relocs 2023-02-23 12:58:53 +10:30
elf32-iq2000.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-lm32.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-m32c.c Test SEC_HAS_CONTENTS in relax routines 2023-02-23 12:58:53 +10:30
elf32-m32r.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-m68hc1x.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-m68hc1x.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-m68hc11.c Test SEC_HAS_CONTENTS in relax routines 2023-02-23 12:58:53 +10:30
elf32-m68hc12.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-m68k.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-m68k.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-mcore.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-mep.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-metag.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-metag.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-microblaze.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-mips.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-moxie.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-msp430.c Test SEC_HAS_CONTENTS in relax routines 2023-02-23 12:58:53 +10:30
elf32-mt.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-nds32.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-nds32.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-nios2.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-nios2.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-or1k.c or1k relocation truncated to fit: R_OR1K_GOT16 even when using -mcmodel=large 2023-05-10 12:08:28 +01:00
elf32-pj.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-ppc.c PR30326, uninitialised value in objdump compare_relocs 2023-04-12 14:13:46 +09:30
elf32-ppc.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-pru.c Test SEC_HAS_CONTENTS in relax routines 2023-02-23 12:58:53 +10:30
elf32-rl78.c gcc-4.5 build fixes 2023-05-17 11:21:43 +09:30
elf32-rx.c Test SEC_HAS_CONTENTS in relax routines 2023-02-23 12:58:53 +10:30
elf32-rx.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-s12z.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-s390.c IBM zSystems: Fix offset relative to static TLS 2023-01-10 14:34:16 +01:00
elf32-score7.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-score.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-score.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-sh-relocs.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-sh.c sh4-linux segfaults running ld testsuite 2023-04-20 09:03:53 +09:30
elf32-sparc.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-spu.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-spu.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-tic6x.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-tic6x.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-tilegx.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-tilegx.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-tilepro.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-tilepro.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-v850.c Test SEC_HAS_CONTENTS in relax routines 2023-02-23 12:58:53 +10:30
elf32-v850.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-vax.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-visium.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-wasm32.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-xgate.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-xstormy16.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-xtensa.c bfd: xtensa: fix __stop_SECTION literal drop 2023-02-23 10:48:16 +00:00
elf32-z80.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf64-alpha.c Test SEC_HAS_CONTENTS in relax routines 2023-02-23 12:58:53 +10:30
elf64-amdgcn.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf64-bpf.c Reloc howto access broken for BPF 2023-03-20 15:35:21 +00:00
elf64-gen.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf64-hppa.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf64-hppa.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf64-ia64-vms.c Test SEC_HAS_CONTENTS in relax routines 2023-02-23 12:58:53 +10:30
elf64-mips.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf64-mmix.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf64-nfp.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf64-ppc.c PowerPC64 report number of stub iterations 2023-05-22 10:35:02 +09:30
elf64-ppc.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf64-s390.c IBM zSystems: Fix offset relative to static TLS 2023-01-10 14:34:16 +01:00
elf64-sparc.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf64-tilegx.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf64-tilegx.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf64-x86-64.c ld: Allow R_X86_64_GOTPCREL for call *__tls_get_addr@GOTPCREL(%rip) 2023-03-10 11:53:32 -08:00
elf64.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf-attrs.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf-bfd.h Tidy dwarf1 cached section contents 2023-03-24 21:01:43 +10:30
elf-eh-frame.c Test SEC_HAS_CONTENTS before reading section contents 2023-02-23 12:58:53 +10:30
elf-hppa.h Test SEC_HAS_CONTENTS before reading section contents 2023-02-23 12:58:53 +10:30
elf-ifunc.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf-linker-x86.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf-linux-core.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf-m10200.c Test SEC_HAS_CONTENTS in relax routines 2023-02-23 12:58:53 +10:30
elf-m10300.c Test SEC_HAS_CONTENTS before reading section contents 2023-02-23 12:58:53 +10:30
elf-nacl.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf-nacl.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf-properties.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf-s390-common.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf-s390.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf-sframe.c Test SEC_HAS_CONTENTS before reading section contents 2023-02-23 12:58:53 +10:30
elf-strtab.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf-vxworks.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf-vxworks.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf.c Move bfd_elf_bfd_from_remote_memory to opncls.c 2023-05-03 14:53:28 +09:30
elfcode.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elfcore.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elflink.c lto: Don't add indirect symbols for versioned aliases in IR 2023-03-31 08:34:48 -07:00
elfn32-mips.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elfnn-aarch64.c PR30437 aarch64: make RELA relocs idempotent 2023-05-23 16:43:14 +02:00
elfnn-ia64.c Test SEC_HAS_CONTENTS in relax routines 2023-02-23 12:58:53 +10:30
elfnn-loongarch.c LoongArch: Fix PLT entry generate bug 2023-05-15 09:22:27 +08:00
elfnn-riscv.c RISC-V: Support subtraction of .uleb128. 2023-05-19 16:24:10 +08:00
elfxx-aarch64.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elfxx-aarch64.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elfxx-ia64.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elfxx-ia64.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elfxx-loongarch.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elfxx-loongarch.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elfxx-mips.c _bfd_mips_elf_lo16_reloc vallo comment 2023-05-03 09:03:01 +09:30
elfxx-mips.h Generated docs and include files 2023-05-03 15:00:05 +09:30
elfxx-riscv.c RISC-V: Support subtraction of .uleb128. 2023-05-19 16:24:10 +08:00
elfxx-riscv.h RISC-V: Add --[no-]relax-gp to ld 2023-02-23 22:11:14 -08:00
elfxx-sparc.c Use __func__ rather than __FUNCTION__ 2023-01-12 17:20:21 +10:30
elfxx-sparc.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elfxx-target.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elfxx-tilegx.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elfxx-tilegx.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elfxx-x86.c bfd: use "stack trace" instead of "unwind" for SFrame 2023-02-02 00:49:29 -08:00
elfxx-x86.h x86: Remove duplicated I386_PCREL_TYPE_P/X86_64_PCREL_TYPE_P 2023-01-04 11:15:25 -08:00
format.c Preserve a few more bfd fields in check_format_matches 2023-04-13 15:03:16 +09:30
gen-aout.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
genlink.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
go32stub.h
hash.c Generated docs and include files 2023-05-03 15:00:05 +09:30
host-aout.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
hppabsd-core.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
hpux-core.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
i386aout.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
i386bsd.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
i386lynx.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
i386msdos.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ihex.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
init.c Move bfd_init to bfd.c 2023-01-10 09:15:51 +10:30
irix-core.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
libaout.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
libbfd-in.h Remove unused args from bfd_make_debug_symbol 2023-05-03 15:53:29 +09:30
libbfd.c Generated docs and include files 2023-05-03 15:00:05 +09:30
libbfd.h RISC-V: Support subtraction of .uleb128. 2023-05-19 16:24:10 +08:00
libcoff-in.h Decorated symbols in import libs (BUG 30421) 2023-05-17 13:38:14 +01:00
libcoff.h Decorated symbols in import libs (BUG 30421) 2023-05-17 13:38:14 +01:00
libecoff.h Move mips_refhi_list to bfd tdata 2023-01-10 09:15:51 +10:30
libhppa.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
libpei.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
libxcoff.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
linker.c Generated docs and include files 2023-05-03 15:00:05 +09:30
lynx-core.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
mach-o-aarch64.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
mach-o-arm.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
mach-o-i386.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
mach-o-target.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
mach-o-x86-64.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
mach-o.c mach-o: out of memory in get_dynamic_reloc_upper_bound 2023-03-17 21:14:46 +10:30
mach-o.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
MAINTAINERS Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
Makefile.am Generated docs and include files 2023-05-03 15:00:05 +09:30
Makefile.in Generated docs and include files 2023-05-03 15:00:05 +09:30
makefile.vms Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
mep-relocs.pl Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
merge.c Silence ubsan warning about 1<<31 2023-01-31 15:18:04 +10:30
mmo.c Fix mmo memory leaks 2023-02-10 20:30:24 +10:30
netbsd-core.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
netbsd.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ns32k.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ns32knetbsd.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
opncls.c Generated docs and include files 2023-05-03 15:00:05 +09:30
osf-core.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
pc532-mach.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
pdb.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
pdp11.c Re: Fix an aout memory leak 2023-03-29 12:56:46 +10:30
pe-aarch64.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
pe-arm-wince.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
pe-arm.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
pe-i386.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
pe-mcore.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
pe-sh.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
pe-x86_64.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
pef-traceback.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
pef.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
pef.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
pei-aarch64.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
pei-arm-wince.c Use subsystem to distinguish between pei-arm-little and pei-arm-wince-little 2023-01-18 03:56:35 +00:00
pei-arm.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
pei-i386.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
pei-ia64.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
pei-loongarch64.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
pei-mcore.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
pei-sh.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
pei-x86_64.c Test SEC_HAS_CONTENTS before reading section contents 2023-02-23 12:58:53 +10:30
peicode.h Re: Add section caches to coff_data_type 2023-05-18 12:21:40 +09:30
peXXigen.c Make the .rsrc section read only. 2023-04-17 17:19:21 +01:00
plugin.c Add LDPT_REGISTER_CLAIM_FILE_HOOK_V2 linker plugin hook [GCC PR109128] 2023-05-11 14:31:09 +00:00
plugin.h Add LDPT_REGISTER_CLAIM_FILE_HOOK_V2 linker plugin hook [GCC PR109128] 2023-05-11 14:31:09 +00:00
PORTING Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ppcboot.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ptrace-core.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
README Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
reloc16.c z8 and z80 coff_reloc16_extra_cases sanity checks 2023-03-08 11:24:50 +10:30
reloc.c RISC-V: Support subtraction of .uleb128. 2023-05-19 16:24:10 +08:00
rs6000-core.c Enable vector register visibility in core file for AIX binutils 2023-03-19 23:35:18 +10:30
section.c Generated docs and include files 2023-05-03 15:00:05 +09:30
simple.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
som.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
som.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
srec.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
stab-syms.c Generated docs and include files 2023-05-03 15:00:05 +09:30
stabs.c Generated docs and include files 2023-05-03 15:00:05 +09:30
syms.c Re: Bug 23686, two segment faults in nm 2023-05-20 21:06:03 +09:30
sysdep.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
targets.c Remove unused args from bfd_make_debug_symbol 2023-05-03 15:53:29 +09:30
targmatch.sed
tekhex.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
TODO Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
trad-core.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
vax1knetbsd.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
vaxnetbsd.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
verilog.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
version.h Automatic date update in version.in 2023-05-23 00:01:04 +00:00
version.m4 Update version number and regenerate files 2022-12-31 12:23:00 +00:00
vms-alpha.c alpha-vms reloc sanity check 2023-05-09 12:51:42 +09:30
vms-lib.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
vms-misc.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
vms.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
warning.m4 Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
wasm-module.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
wasm-module.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
xcofflink.c Re: Add section caches to coff_data_type 2023-05-18 18:01:49 +09:30
xcofflink.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
xsym.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
xsym.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
xtensa-dynconfig.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
xtensa-isa.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
xtensa-modules.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +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.

BFD is an object file library.  It permits applications to use the
same routines to process object files regardless of their format.

BFD is used by the GNU debugger, assembler, linker, and the binary
utilities.

The documentation on using BFD is scanty and may be occasionally
incorrect.  Pointers to documentation problems, or an entirely
rewritten manual, would be appreciated.

There is some BFD internals documentation in doc/bfdint.texi which may
help programmers who want to modify BFD.

BFD is normally built as part of another package.  See the build
instructions for that package, probably in a README file in the
appropriate directory.

BFD supports the following configure options:

  --target=TARGET
	The default target for which to build the library.  TARGET is
	a configuration target triplet, such as sparc-sun-solaris.
  --enable-targets=TARGET,TARGET,TARGET...
	Additional targets the library should support.  To include
	support for all known targets, use --enable-targets=all.
  --enable-64-bit-bfd
	Include support for 64 bit targets.  This is automatically
	turned on if you explicitly request a 64 bit target, but not
	for --enable-targets=all.  This requires a compiler with a 64
	bit integer type, such as gcc.
  --enable-shared
	Build BFD as a shared library.
  --with-mmap
	Use mmap when accessing files.  This is faster on some hosts,
	but slower on others.  It may not work on all hosts.

Report bugs in BFD to https://sourceware.org/bugzilla/

Patches are encouraged.  When sending patches, always send the output
of diff -u or diff -c from the original file to the new file.  Do not
send default diff output.  Do not make the diff from the new file to
the original file.  Remember that any patch must not break other
systems.  Remember that BFD must support cross compilation from any
host to any target, so patches which use ``#ifdef HOST'' are not
acceptable.  Please also read the ``Reporting Bugs'' section of the
gcc manual.

Bug reports without patches will be remembered, but they may never get
fixed until somebody volunteers to fix them.

Copyright (C) 2012-2023 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.