binutils-gdb/bfd
Szabolcs Nagy d3a8dfdef0 bfd: aarch64: Fix broken BTI stub PR30930
Input sections are grouped together that can use the same stub area
(within reach) and these groups have a stable id.

Stubs have a name generated from the stub group id and target symbol.
When a relocation requires a stub with a name that already exists, the
stub is reused instead of adding a new one.

For an indirect branch stub another BTI stub may be inserted near the
target to provide a BTI landing pad.

The BTI stub can end up with the same stub group id and thus the same
name as the indirect stub. This happens if the target symbol is within
reach of the indirect branch stub. Then, due to the name collision,
only a single stub was emmitted which branched to itself causing an
infinite loop at runtime.

A possible solution is to just name the BTI stubs differently, but
since in the problematic case the indirect and BTI stub are in the
same stub area, a better solution is to emit a single stub with a
direct branch. The stub is still needed since the caller cannot reach
the target directly and we also want a BTI landing pad in the stub in
case other indirect stubs target the same symbol and thus need a BTI
stub.

In short we convert an indirect branch stub into a BTI stub when the
target is within reach and has no BTI. It is a hassle to change the
symbol of the stub so a BTI stub may end up with *_veneer instead of
*_bti_veneer after the conversion, but this should not matter much.
(Refactoring some of _bfd_aarch64_add_call_stub_entries would be
useful but too much for this bug fix patch.)

The same conversion to direct branch could be done even if the target
did not need a BTI. The stub groups are fixed in the current logic so
linking can fail if too many stubs are inserted and the section layout
is changed too much, but this only happens in extreme cases that can
be reasonably ignored. Because of this the target cannot go out of
reach during stub insertion so the optimization is valid, but not
implemented by this patch for the non-BTI case.

Fixes bug 30930.
2023-11-09 14:44:37 +00:00
..
doc Add minimal thread-safety to BFD 2023-11-07 17:47:16 -07:00
hosts obsolete target tidy 2023-01-02 14:03:22 +10:30
po Add minimal thread-safety to BFD 2023-11-07 17:47:16 -07: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 Make various error-related globals thread-local 2023-11-07 17:47:12 -07:00
aix5ppc-core.c Rename bfd_bread and bfd_bwrite 2023-08-09 08:48:09 +09: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 Rename bfd_bread and bfd_bwrite 2023-08-09 08:48:09 +09:30
aoutx.h Rename bfd_bread and bfd_bwrite 2023-08-09 08:48:09 +09:30
arc-got.h Revert "arc: Add new ARCv3 ISA to BFD." 2023-09-25 17:03:06 +03:00
arc-plt.def Revert "arc: Add new ARCv3 ISA to BFD." 2023-09-25 17:03:06 +03:00
arc-plt.h Revert "arc: Add new ARCv3 ISA to BFD." 2023-09-25 17:03:06 +03:00
archive64.c Allow the use of SOURCE_DATE_EPOCH in the timestamps for members of static archives. 2023-09-26 14:07:23 +01:00
archive.c Allow the use of SOURCE_DATE_EPOCH in the timestamps for members of static archives. 2023-09-26 14:07:23 +01:00
archures.c Revert "arc: Add new ARCv3 ISA to BFD." 2023-09-25 17:03:06 +03:00
ax_tls.m4 Make various error-related globals thread-local 2023-11-07 17:47:12 -07:00
bfd-in2.h Add minimal thread-safety to BFD 2023-11-07 17:47:16 -07:00
bfd-in.h Generated docs and include files 2023-05-03 15:00:05 +09:30
bfd.c Add minimal thread-safety to BFD 2023-11-07 17:47:16 -07:00
bfd.m4 Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
bfdio.c Allow the use of SOURCE_DATE_EPOCH in the timestamps for members of static archives. 2023-09-26 14:07:23 +01:00
bfdwin.c Rename bfd_bread and bfd_bwrite 2023-08-09 08:48:09 +09:30
binary.c Rename bfd_bread and bfd_bwrite 2023-08-09 08:48:09 +09:30
bpf-reloc.def Accept and ignore the R_BPF_64_NODLYD32 relocation. 2023-10-30 12:18:45 +00:00
cache.c Add minimal thread-safety to BFD 2023-11-07 17:47:16 -07:00
cf-i386lynx.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ChangeLog Accept and ignore the R_BPF_64_NODLYD32 relocation. 2023-10-30 12:18:45 +00: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 Rename bfd_bread and bfd_bwrite 2023-08-09 08:48:09 +09:30
coff64-rs6000.c warn unused result for bfd IO functions 2023-08-11 16:36:11 +09:30
coff-aarch64.c Remove PEI_HEADERS define 2023-08-03 07:39:15 -06:00
coff-alpha.c asan: NULL deref in alpha_ecoff_get_relocated_section_contents 2023-10-25 11:12:11 +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 bfd: correct relocation handling for objcopy COFF -> ELF 2023-08-25 14:56:44 +02:00
coff-ia64.c Rename bfd_bread and bfd_bwrite 2023-08-09 08:48:09 +09:30
coff-loongarch64.c Remove PEI_HEADERS define 2023-08-03 07:39:15 -06:00
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 DEFAULT_BUFFERSIZE 2023-08-31 07:48:16 +09:30
coff-sh.c bfd: correct relocation handling for objcopy COFF -> ELF 2023-08-25 14:56:44 +02:00
coff-stgo32.c warn unused result for bfd IO functions 2023-08-11 16:36:11 +09: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 bfd: correct relocation handling for objcopy COFF -> ELF 2023-08-25 14:56:44 +02:00
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 COFF swap_aux_in 2023-08-28 23:10:57 +09:30
coffgen.c COFF swap_aux_in 2023-08-28 23:10:57 +09:30
cofflink.c bfd_get_symbol_leading_char vs. "" 2023-08-23 10:07:45 +09:30
coffswap.h COFF swap_aux_in 2023-08-28 23:10:57 +09:30
compress.c asan: invalid free in bfd_init_section_compress_status 2023-10-10 22:17:29 +10:30
config.bfd Revert "arc: Add new ARCv3 ISA to BFD." 2023-09-25 17:03:06 +03:00
config.in Make various error-related globals thread-local 2023-11-07 17:47:12 -07:00
configure Make various error-related globals thread-local 2023-11-07 17:47:12 -07:00
configure.ac Make various error-related globals thread-local 2023-11-07 17:47:12 -07: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 aarch64: Enable Cortex-X4 CPU 2023-10-05 11:09:45 +01:00
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 Revert "arc: Add new ARCv3 ISA to BFD." 2023-09-25 17:03:06 +03:00
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-kvx.c kvx: New port. 2023-08-16 14:22:54 +01:00
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 Add MIPS Allegrex CPU as a MIPS2-based CPU 2023-06-15 04:45:03 +01:00
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 Remove BFD_FAIL in cpu-sh.c 2023-06-01 09:51:59 +09: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 Revert "2.41 Release sources" 2023-08-02 12:06:23 +01:00
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 Rename bfd_bread and bfd_bwrite 2023-08-09 08:48:09 +09:30
ecofflink.c Rename bfd_bread and bfd_bwrite 2023-08-09 08:48:09 +09: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 Revert "arc: Add new ARCv3 ISA to BFD." 2023-09-25 17:03:06 +03:00
elf32-arm.c Fix: GNU-ld: ARM: Issues when trying to set target output architecture 2023-10-16 16:11:49 +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 Fix: Null pointer dereference in elf32-i386.c 2023-10-09 16:53:27 +01: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 bfd: microblaze: Add 32_NONE reloc type 2023-10-20 07:12:30 -07:00
elf32-mips.c Don't segfault in mips reloc special_functions 2023-06-20 10:01:50 +09: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 nds32, sh, kvx: DT_JMPREL/DT_PLTRELSZ 2023-08-24 15:54:39 +09:30
elf32-nds32.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32-nios2.c asprintf memory leaks 2023-06-14 14:24:50 +09: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 ld: print branch fixups into the map file for ppc elf targets 2023-11-08 09:07:02 +01:00
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 nds32, sh, kvx: DT_JMPREL/DT_PLTRELSZ 2023-08-24 15:54:39 +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 Fix: alpha: ld segfaults in 2023-10-06 10:52:02 +01:00
elf64-amdgcn.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf64-bpf.c Revert "2.41 Release sources" 2023-08-02 12:06:23 +01:00
elf64-gen.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf64-hppa.c Rename bfd_bread and bfd_bwrite 2023-08-09 08:48:09 +09: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 bfd_close_all_done bug and bfd_last_cache 2023-08-21 19:11:02 +09:30
elf64-mips.c Don't segfault in mips reloc special_functions 2023-06-20 10:01:50 +09: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 ppc: sanity check writing relocs 2023-08-04 17:59:01 +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 x86-64: Add -z mark-plt and -z nomark-plt 2023-09-29 07:58:53 -07:00
elf64.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf-attrs.c elf-attrs.c memory allocation fail 2023-09-20 08:23:47 +09:30
elf-bfd.h Fix: nm: SEGV on unknow address at nm.c:718 in print_symname 2023-09-28 12:37:59 +01:00
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 x86-64: Add -z mark-plt and -z nomark-plt 2023-09-29 07:58:53 -07:00
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 Rename bfd_bread and bfd_bwrite 2023-08-09 08:48:09 +09: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 sframe: bfd: gas: ld: format bump to SFrame version 2 2023-06-29 16:31:58 -07:00
elf-strtab.c Fix: "Possible Memory leak in bed hash.c" 2023-09-13 11:38:33 +01:00
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 asan: _bfd_elf_slurp_version_tables memory leak 2023-10-25 11:12:11 +10:30
elfcode.h nm: heap-buffer-overflow at elfcode.h:1507 in bfd_elf64_slurp_symbol_table 2023-09-27 16:09:06 +01:00
elfcore.h Rename bfd_bread and bfd_bwrite 2023-08-09 08:48:09 +09:30
elflink.c Fix: A potential bug of null pointer dereference 2023-10-09 15:14:52 +01:00
elfn32-mips.c Don't segfault in mips reloc special_functions 2023-06-20 10:01:50 +09:30
elfnn-aarch64.c bfd: aarch64: Fix broken BTI stub PR30930 2023-11-09 14:44:37 +00:00
elfnn-ia64.c Test SEC_HAS_CONTENTS in relax routines 2023-02-23 12:58:53 +10:30
elfnn-kvx.c nds32, sh, kvx: DT_JMPREL/DT_PLTRELSZ 2023-08-24 15:54:39 +09:30
elfnn-loongarch.c LoongArch: Correct comments. 2023-10-18 08:58:05 +08:00
elfnn-riscv.c RISC-V: Moved out linker internal relocations after R_RISCV_max. 2023-11-06 17:21:42 +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-kvx-relocs.h kvx: New port. 2023-08-16 14:22:54 +01:00
elfxx-kvx.c kvx bfd signed calculations and _bfd_kvx_elf_resolve_relocation 2023-08-23 10:54:33 +09:30
elfxx-kvx.h kvx bfd signed calculations and _bfd_kvx_elf_resolve_relocation 2023-08-23 10:54:33 +09:30
elfxx-loongarch.c as: fixed internal error when immediate value of relocation overflow. 2023-10-24 15:27:39 +08:00
elfxx-loongarch.h LoongArch: Fix ld "undefined reference" error with --enable-shared 2023-06-16 17:32:02 +08:00
elfxx-mips.c Rename bfd_bread and bfd_bwrite 2023-08-09 08:48:09 +09:30
elfxx-mips.h _bfd_free_cached_info 2023-06-07 14:16:06 +09:30
elfxx-riscv.c RISC-V: Add support for XCValu extension in CV32E40P 2023-11-07 12:06:32 +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 ELF: Strip section header in ELF objects 2023-06-29 10:29:46 -07:00
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 x86-64: Add -z mark-plt and -z nomark-plt 2023-09-29 07:58:53 -07:00
elfxx-x86.h x86-64: Add -z mark-plt and -z nomark-plt 2023-09-29 07:58:53 -07:00
format.c Rename bfd_bread and bfd_bwrite 2023-08-09 08:48:09 +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 Rename bfd_bread and bfd_bwrite 2023-08-09 08:48:09 +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 Rename bfd_bread and bfd_bwrite 2023-08-09 08:48:09 +09:30
hpux-core.c Rename bfd_bread and bfd_bwrite 2023-08-09 08:48:09 +09: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 Rename bfd_bread and bfd_bwrite 2023-08-09 08:48:09 +09:30
i386msdos.c Rename bfd_bread and bfd_bwrite 2023-08-09 08:48:09 +09:30
ihex.c Rename bfd_bread and bfd_bwrite 2023-08-09 08:48:09 +09:30
init.c Move bfd_init to bfd.c 2023-01-10 09:15:51 +10:30
irix-core.c Rename bfd_bread and bfd_bwrite 2023-08-09 08:48:09 +09:30
libaout.h Rename bfd_bread and bfd_bwrite 2023-08-09 08:48:09 +09:30
libbfd-in.h DEFAULT_BUFFERSIZE 2023-08-31 07:48:16 +09:30
libbfd.c libbfd.texi zero size 2023-08-31 08:57:31 +09:30
libbfd.h Add minimal thread-safety to BFD 2023-11-07 17:47:16 -07:00
libcoff-in.h PE dos_message 2023-08-27 21:21:38 +09:30
libcoff.h PE dos_message 2023-08-27 21:21:38 +09:30
libecoff.h ecoff find_nearest_line and final link leaks 2023-06-09 12:56:12 +09:30
libhppa.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
libpei.h Remove PEI_HEADERS define 2023-08-03 07:39:15 -06:00
libxcoff.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
linker.c bfd_get_symbol_leading_char vs. "" 2023-08-23 10:07:45 +09:30
lynx-core.c Rename bfd_bread and bfd_bwrite 2023-08-09 08:48:09 +09: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 _bfd_free_cached_info 2023-06-07 14:16:06 +09: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 Rename bfd_bread and bfd_bwrite 2023-08-09 08:48:09 +09:30
mach-o.h _bfd_free_cached_info 2023-06-07 14:16:06 +09:30
MAINTAINERS Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
Makefile.am Revert "arc: Add new ARCv3 ISA to BFD." 2023-09-25 17:03:06 +03:00
Makefile.in Make various error-related globals thread-local 2023-11-07 17:47:12 -07:00
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 Rename bfd_bread and bfd_bwrite 2023-08-09 08:48:09 +09:30
mmo.c Rename bfd_bread and bfd_bwrite 2023-08-09 08:48:09 +09:30
netbsd-core.c Rename bfd_bread and bfd_bwrite 2023-08-09 08:48:09 +09: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 Add minimal thread-safety to BFD 2023-11-07 17:47:16 -07:00
osf-core.c Rename bfd_bread and bfd_bwrite 2023-08-09 08:48:09 +09:30
pc532-mach.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
pdb.c Rename bfd_bread and bfd_bwrite 2023-08-09 08:48:09 +09:30
pdp11.c Rename bfd_bread and bfd_bwrite 2023-08-09 08:48:09 +09:30
pe-aarch64.c Remove PEI_HEADERS define 2023-08-03 07:39:15 -06:00
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 Remove PEI_HEADERS define 2023-08-03 07:39:15 -06:00
pef-traceback.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
pef.c warn unused result for bfd IO functions 2023-08-11 16:36:11 +09:30
pef.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
pei-aarch64.c Remove PEI_HEADERS define 2023-08-03 07:39:15 -06:00
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 Remove PEI_HEADERS define 2023-08-03 07:39:15 -06:00
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 Remove PEI_HEADERS define 2023-08-03 07:39:15 -06:00
peicode.h PE dos_message 2023-08-27 21:21:38 +09:30
peXXigen.c Use bfd_get_current_time in places where it is suitable 2023-10-02 13:24:05 +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 Rename bfd_bread and bfd_bwrite 2023-08-09 08:48:09 +09:30
ptrace-core.c Rename bfd_bread and bfd_bwrite 2023-08-09 08:48:09 +09: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: Moved out linker internal relocations after R_RISCV_max. 2023-11-06 17:21:42 +08:00
rs6000-core.c Rename bfd_bread and bfd_bwrite 2023-08-09 08:48:09 +09:30
section.c Revert "2.41 Release sources" 2023-08-02 12:06:23 +01:00
simple.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
som.c asan: out of memory in som_set_reloc_info 2023-10-25 11:12:11 +10:30
som.h som: buffer overflow writing strings 2023-08-25 15:55:25 +09:30
srec.c Rename bfd_bread and bfd_bwrite 2023-08-09 08:48:09 +09: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 Revert "arc: Add new ARCv3 ISA to BFD." 2023-09-25 17:03:06 +03:00
targmatch.sed
tekhex.c Rename bfd_bread and bfd_bwrite 2023-08-09 08:48:09 +09:30
TODO Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
trad-core.c Rename bfd_bread and bfd_bwrite 2023-08-09 08:48:09 +09: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 Rename bfd_bread and bfd_bwrite 2023-08-09 08:48:09 +09:30
version.h Automatic date update in version.in 2023-11-09 00:00:33 +00:00
version.m4 Revert "2.41 Release sources" 2023-08-02 12:06:23 +01:00
vms-alpha.c PR30870, VMS_DEBUG compilation error 2023-09-20 09:35:53 +09:30
vms-lib.c DEFAULT_BUFFERSIZE 2023-08-31 07:48:16 +09:30
vms-misc.c warn unused result for bfd IO functions 2023-08-11 16:36:11 +09:30
vms.h warn unused result for bfd IO functions 2023-08-11 16:36:11 +09:30
warning.m4 Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
wasm-module.c warn unused result for bfd IO functions 2023-08-11 16:36:11 +09:30
wasm-module.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
xcofflink.c Rename bfd_bread and bfd_bwrite 2023-08-09 08:48:09 +09:30
xcofflink.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
xsym.c warn unused result for bfd IO functions 2023-08-11 16:36:11 +09: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.