binutils-gdb/bfd
Alan Modra cb001c0d28 bfd_cleanup for object_p
The object_p (and archive_p, core_file_p) functions are not supposed
to have any target specific malloc'd memory attached to the bfd on
their return.  This should be obvious on a failure return, but it's
also true for a successful return.  The reason is that even though the
object_p recognises the file, that particular target may not be used
and thus the bfd won't be closed calling close_and_cleanup for the
target that allocated the memory.

It turns out that the object_p bfd_target* return value isn't needed.
In all cases except ld/plugin.c the target is abfd->xvec and with
ld/plugin.c the target isn't used.  So this patch returns a cleanup
function from object_p instead, called in bfd_check_format_matches to
tidy the bfd before trying a different target match.  The only cleanup
that does anything at this stage is the alpha-vms one.

bfd/
	* targets.c (bfd_cleanup): New typedef.
	(struct bfd <_bfd_check_format>): Return a bfd_cleanup.
	* libbfd-in.h (_bfd_no_cleanup): Define.
	* format.c (bfd_reinit): Add cleanup parameter, call it.
	(bfd_check_format_matches): Set cleanup from _bfd_check_format
	call and pass to bfd_reinit.  Delete temp, use abfd->xvec instead.
	* aout-target.h (callback, object_p): Return bfd_cleanup.
	* aout-tic30.c (tic30_aout_callback, tic30_aout_object_p): Likewise.
	* archive.c (bfd_generic_archive_p): Likewise.
	* binary.c (binary_object_p): Likewise.
	* coff-alpha.c (alpha_ecoff_object_p): Likewise.
	* coff-ia64.c (ia64coff_object_p): Likewise.
	* coff-rs6000.c (_bfd_xcoff_archive_p, rs6000coff_core_p): Likewise.
	* coff-sh.c (coff_small_object_p): Likewise.
	* coff-stgo32.c (go32_check_format): Likewise.
	* coff64-rs6000.c (xcoff64_archive_p, rs6000coff_core_p),
	(xcoff64_core_p): Likewise.
	* coffgen.c (coff_real_object_p, coff_object_p): Likewise.
	* elf-bfd.h (bfd_elf32_object_p, bfd_elf32_core_file_p),
	(bfd_elf64_object_p, bfd_elf64_core_file_p): Likewise.
	* elfcode.h (elf_object_p): Likewise.
	* elfcore.h (elf_core_file_p): Likewise.
	* i386msdos.c (msdos_object_p): Likewise.
	* ihex.c (ihex_object_p): Likewise.
	* libaout.h (some_aout_object_p): Likewise.
	* libbfd-in.h (bfd_generic_archive_p, _bfd_dummy_target),
	(_bfd_vms_lib_alpha_archive_p, _bfd_vms_lib_ia64_archive_p): Likewise.
	* libbfd.c (_bfd_dummy_target): Likewise.
	* libcoff-in.h (coff_object_p): Likewise.
	* mach-o-aarch64.c (bfd_mach_o_arm64_object_p),
	(bfd_mach_o_arm64_core_p): Likewise.
	* mach-o-arm.c (bfd_mach_o_arm_object_p),
	(bfd_mach_o_arm_core_p): Likewise.
	* mach-o-i386.c (bfd_mach_o_i386_object_p),
	(bfd_mach_o_i386_core_p): Likewise.
	* mach-o-x86-64.c (bfd_mach_o_x86_64_object_p),
	(bfd_mach_o_x86_64_core_p): Likewise.
	* mach-o.c (bfd_mach_o_header_p, bfd_mach_o_gen_object_p),
	(bfd_mach_o_gen_core_p, bfd_mach_o_fat_archive_p): Likewise.
	* mach-o.h (bfd_mach_o_object_p, bfd_mach_o_core_p),
	(bfd_mach_o_fat_archive_p, bfd_mach_o_header_p): Likewise.
	* mmo.c (mmo_object_p): Likewise.
	* pef.c (bfd_pef_object_p, bfd_pef_xlib_object_p): Likewise.
	* peicode.h (coff_real_object_p, pe_ILF_object_p),
	(pe_bfd_object_p): Likewise.
	* plugin.c (ld_plugin_object_p, bfd_plugin_object_p): Likewise.
	* ppcboot.c (ppcboot_object_p): Likewise.
	* rs6000-core.c (rs6000coff_core_p): Likewise.
	* som.c (som_object_setup, som_object_p): Likewise.
	* srec.c (srec_object_p, symbolsrec_object_p): Likewise.
	* tekhex.c (tekhex_object_p): Likewise.
	* vms-alpha.c (alpha_vms_object_p): Likewise.
	* vms-lib.c (_bfd_vms_lib_archive_p, _bfd_vms_lib_alpha_archive_p),
	(_bfd_vms_lib_ia64_archive_p, _bfd_vms_lib_txt_archive_p): Likewise.
	* wasm-module.c (wasm_object_p): Likewise.
	* xsym.c (bfd_sym_object_p): Likewise.
	* xsym.h (bfd_sym_object_p): Likewise.
	* aoutx.h (some_aout_object_p): Likewise, and callback parameter
	return type.
	* pdp11.c (some_aout_object_p): Likewise.
	* plugin.c (register_ld_plugin_object_p): Update object_p
	parameter type.
	* plugin.h (register_ld_plugin_object_p): Likewise.
	* bfd-in2.h: Regenerate.
	* libbfd.h: Regenerate.
	* libcoff.h: Regenerate.
ld/
	* plugin.c (plugin_object_p): Return a bfd_cleanup.
	(plugin_cleanup): New function.
2020-03-02 19:30:48 +10:30
..
doc Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
hosts Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
po Remove cpu-plugin.c 2020-01-27 14:31:29 +01:00
.gitignore
acinclude.m4 Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
aclocal.m4 Bump to autoconf 2.69 and automake 1.15.1 2018-06-19 16:55:06 -04:00
aix5ppc-core.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
aix386-core.c bfd_size_type to size_t 2020-02-19 13:12:00 +10:30
aout32.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
aout64.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
aout-cris.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
aout-ns32k.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
aout-target.h bfd_cleanup for object_p 2020-03-02 19:30:48 +10:30
aout-tic30.c bfd_cleanup for object_p 2020-03-02 19:30:48 +10:30
aoutx.h bfd_cleanup for object_p 2020-03-02 19:30:48 +10:30
arc-got.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
arc-plt.def Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
arc-plt.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
archive64.c Indent labels 2020-02-26 10:37:25 +10:30
archive.c bfd_cleanup for object_p 2020-03-02 19:30:48 +10:30
archures.c bfd_size_type to size_t 2020-02-19 13:12:00 +10:30
bfd-in2.h bfd_cleanup for object_p 2020-03-02 19:30:48 +10:30
bfd-in.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
bfd.c bfd_stat_arch_elt buffer overflow 2020-02-27 17:04:55 +10:30
bfd.m4 Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
bfdio.c Limit bogus archive parsed_size 2020-02-26 10:37:13 +10:30
bfdwin.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
binary.c bfd_cleanup for object_p 2020-03-02 19:30:48 +10:30
cache.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cf-i386lynx.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ChangeLog bfd_cleanup for object_p 2020-03-02 19:30:48 +10:30
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 rotation 2019-01-01 21:25:40 +10:30
ChangeLog-2019 ChangeLog rotation 2020-01-01 18:12:08 +10:30
ChangeLog-9193
ChangeLog-9495
ChangeLog-9697
ChangeLog-9899
cisco-core.c bfd_size_type to size_t 2020-02-19 13:12:00 +10:30
coff64-rs6000.c bfd_cleanup for object_p 2020-03-02 19:30:48 +10:30
coff-alpha.c bfd_cleanup for object_p 2020-03-02 19:30:48 +10:30
coff-arm.c Indent labels 2020-02-26 10:37:25 +10:30
coff-arm.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
coff-bfd.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
coff-bfd.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
coff-go32.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
coff-i386.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
coff-ia64.c bfd_cleanup for object_p 2020-03-02 19:30:48 +10:30
coff-mcore.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
coff-mips.c miscellaneous SEC_SMALL_DATA 2020-03-02 11:36:19 +10:30
coff-ppc.c bfd_size_type to size_t 2020-02-19 13:12:00 +10:30
coff-rs6000.c bfd_cleanup for object_p 2020-03-02 19:30:48 +10:30
coff-sh.c bfd_cleanup for object_p 2020-03-02 19:30:48 +10:30
coff-stgo32.c bfd_cleanup for object_p 2020-03-02 19:30:48 +10:30
coff-tic4x.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
coff-tic30.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
coff-tic54x.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
coff-x86_64.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
coff-z8k.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
coff-z80.c Add support for the GBZ80 and Z80N variants of the Z80 architecture, and add DWARF debug info support to the Z80 assembler. 2020-02-07 14:53:46 +00:00
coffcode.h miscellaneous SEC_SMALL_DATA 2020-03-02 11:36:19 +10:30
coffgen.c bfd_cleanup for object_p 2020-03-02 19:30:48 +10:30
cofflink.c bfd_size_type to size_t 2020-02-19 13:12:00 +10:30
coffswap.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
compress.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
config.bfd Move pending obsolete targets onto the definitely obsolete list 2020-02-01 13:13:14 +00:00
config.in Use GCC LTO wrapper to get real symbols from LTO IR objects 2020-02-10 19:01:53 -08:00
configure Use GCC LTO wrapper to get real symbols from LTO IR objects 2020-02-10 19:01:53 -08:00
configure.ac Use GCC LTO wrapper to get real symbols from LTO IR objects 2020-02-10 19:01:53 -08:00
configure.com Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
configure.host Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
COPYING
corefile.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-aarch64.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-aarch64.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-alpha.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-arc.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-arm.c Indent labels 2020-02-26 10:37:25 +10:30
cpu-arm.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-avr.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-bfin.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-bpf.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-cr16.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-cris.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-crx.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-csky.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-d10v.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-d30v.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-dlx.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-epiphany.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-fr30.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-frv.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-ft32.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-h8300.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-h8300.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-hppa.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-i386.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-ia64-opc.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-ia64.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-iamcu.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-ip2k.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-iq2000.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-k1om.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-l1om.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-lm32.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-m9s12x.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-m9s12xg.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-m32c.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-m32r.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-m68hc11.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-m68hc12.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-m68k.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-m68k.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-m10200.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-m10300.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-mcore.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-mep.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-metag.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-microblaze.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-mips.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-mmix.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-moxie.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-msp430.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-mt.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-nds32.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-nfp.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-nios2.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-ns32k.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-or1k.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-pdp11.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-pj.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-powerpc.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-pru.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-riscv.c RISC-V: Fix gdbserver problem with handling arch strings. 2020-01-27 15:19:30 -08:00
cpu-rl78.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-rs6000.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-rx.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-s12z.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-s390.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-score.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-sh.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-sparc.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-spu.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-tic4x.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-tic6x.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-tic30.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-tic54x.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-tilegx.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-tilepro.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-v850_rh850.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-v850.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-vax.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-visium.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-wasm32.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-xc16x.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-xgate.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-xstormy16.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-xtensa.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-z8k.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cpu-z80.c Various fixes for the Z80 support. 2020-02-19 17:46:10 +00:00
dep-in.sed
development.sh Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
dwarf1.c bfd_size_type to size_t 2020-02-19 13:12:00 +10:30
dwarf2.c Indent labels 2020-02-26 10:37:25 +10:30
ecoff-bfd.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ecoff.c miscellaneous SEC_SMALL_DATA 2020-03-02 11:36:19 +10:30
ecofflink.c bfd_size_type to size_t 2020-02-19 13:12:00 +10:30
ecoffswap.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-am33lin.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-arc.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-arm.c elf_backend_section_flags and _bfd_elf_init_private_section_data 2020-03-02 11:36:19 +10:30
elf32-arm.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-avr.c bfd_size_type to size_t 2020-02-19 13:12:00 +10:30
elf32-avr.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-bfin.c Indent labels 2020-02-26 10:37:25 +10:30
elf32-bfin.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-cr16.c Indent labels 2020-02-26 10:37:25 +10:30
elf32-cr16.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-cris.c bfd_size_type to size_t 2020-02-19 13:12:00 +10:30
elf32-crx.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-csky.c Indent labels 2020-02-26 10:37:25 +10:30
elf32-csky.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-d10v.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-d30v.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-dlx.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-dlx.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-epiphany.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-fr30.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-frv.c bfd_size_type to size_t 2020-02-19 13:12:00 +10:30
elf32-ft32.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-gen.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-h8300.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-hppa.c bfd_size_type to size_t 2020-02-19 13:12:00 +10:30
elf32-hppa.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-i386.c Indent labels 2020-02-26 10:37:25 +10:30
elf32-ip2k.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-iq2000.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-lm32.c bfd_size_type to size_t 2020-02-19 13:12:00 +10:30
elf32-m32c.c _bfd_alloc_and_read 2020-02-19 14:00:55 +10:30
elf32-m32r.c ELF SEC_SMALL_DATA 2020-03-02 11:36:19 +10:30
elf32-m68hc1x.c bfd_size_type to size_t 2020-02-19 13:12:00 +10:30
elf32-m68hc1x.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-m68hc11.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-m68hc12.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-m68k.c Indent labels 2020-02-26 10:37:25 +10:30
elf32-m68k.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-mcore.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-mep.c elf_backend_section_flags and _bfd_elf_init_private_section_data 2020-03-02 11:36:19 +10:30
elf32-metag.c bfd_size_type to size_t 2020-02-19 13:12:00 +10:30
elf32-metag.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-microblaze.c bfd_size_type to size_t 2020-02-19 13:12:00 +10:30
elf32-mips.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-moxie.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-msp430.c Indent labels 2020-02-26 10:37:25 +10:30
elf32-mt.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-nds32.c ELF SEC_SMALL_DATA 2020-03-02 11:36:19 +10:30
elf32-nds32.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-nios2.c elf_backend_section_flags and _bfd_elf_init_private_section_data 2020-03-02 11:36:19 +10:30
elf32-nios2.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-or1k.c bfd_size_type to size_t 2020-02-19 13:12:00 +10:30
elf32-pj.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-ppc.c ELF SEC_SMALL_DATA 2020-03-02 11:36:19 +10:30
elf32-ppc.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-pru.c Indent labels 2020-02-26 10:37:25 +10:30
elf32-rl78.c _bfd_alloc_and_read 2020-02-19 14:00:55 +10:30
elf32-rx.c rx: memory allocation without checking for NULL return 2020-02-26 13:04:54 +10:30
elf32-rx.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-s12z.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-s390.c bfd_size_type to size_t 2020-02-19 13:12:00 +10:30
elf32-score7.c bfd_size_type to size_t 2020-02-19 13:12:00 +10:30
elf32-score.c bfd_size_type to size_t 2020-02-19 13:12:00 +10:30
elf32-score.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-sh-relocs.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-sh.c bfd_size_type to size_t 2020-02-19 13:12:00 +10:30
elf32-sparc.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-spu.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-spu.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-tic6x.c bfd_size_type to size_t 2020-02-19 13:12:00 +10:30
elf32-tic6x.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-tilegx.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-tilegx.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-tilepro.c bfd_size_type to size_t 2020-02-19 13:12:00 +10:30
elf32-tilepro.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-v850.c ELF SEC_SMALL_DATA 2020-03-02 11:36:19 +10:30
elf32-v850.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-vax.c bfd_size_type to size_t 2020-02-19 13:12:00 +10:30
elf32-visium.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-wasm32.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-xc16x.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-xgate.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-xstormy16.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf32-xtensa.c Indent labels 2020-02-26 10:37:25 +10:30
elf32-z80.c Add support for the GBZ80 and Z80N variants of the Z80 architecture, and add DWARF debug info support to the Z80 assembler. 2020-02-07 14:53:46 +00:00
elf32.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf64-alpha.c ELF SEC_SMALL_DATA 2020-03-02 11:36:19 +10:30
elf64-bpf.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf64-gen.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf64-hppa.c ELF SEC_SMALL_DATA 2020-03-02 11:36:19 +10:30
elf64-hppa.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf64-ia64-vms.c elf_backend_section_flags and _bfd_elf_init_private_section_data 2020-03-02 11:36:19 +10:30
elf64-mips.c _bfd_alloc_and_read 2020-02-19 14:00:55 +10:30
elf64-mmix.c bfd_size_type to size_t 2020-02-19 13:12:00 +10:30
elf64-nfp.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf64-ppc.c ELF SEC_SMALL_DATA 2020-03-02 11:36:19 +10:30
elf64-ppc.h PowerPC64 __tls_get_addr_desc 2020-01-22 17:14:08 +10:30
elf64-s390.c bfd_size_type to size_t 2020-02-19 13:12:00 +10:30
elf64-sparc.c _bfd_alloc_and_read 2020-02-19 14:00:55 +10:30
elf64-tilegx.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf64-tilegx.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf64-x86-64.c Indent labels 2020-02-26 10:37:25 +10:30
elf64.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf-attrs.c bfd_get_file_size calls 2020-02-19 13:14:05 +10:30
elf-bfd.h bfd_cleanup for object_p 2020-03-02 19:30:48 +10:30
elf-eh-frame.c nios2: Add BFD support for GOT-relative DW_EH_PE_datarel encodings 2020-01-31 10:34:42 -08:00
elf-hppa.h bfd_size_type to size_t 2020-02-19 13:12:00 +10:30
elf-ifunc.c Indent labels 2020-02-26 10:37:25 +10:30
elf-linker-x86.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf-linux-core.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf-m10200.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf-m10300.c bfd_size_type to size_t 2020-02-19 13:12:00 +10:30
elf-nacl.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf-nacl.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf-properties.c Indent labels 2020-02-26 10:37:25 +10:30
elf-s390-common.c Indent labels 2020-02-26 10:37:25 +10:30
elf-s390.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf-strtab.c Indent labels 2020-02-26 10:37:25 +10:30
elf-vxworks.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf-vxworks.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf.c elf_backend_section_flags and _bfd_elf_init_private_section_data 2020-03-02 11:36:19 +10:30
elfcode.h bfd_cleanup for object_p 2020-03-02 19:30:48 +10:30
elfcore.h bfd_cleanup for object_p 2020-03-02 19:30:48 +10:30
elflink.c Indent labels 2020-02-26 10:37:25 +10:30
elfn32-mips.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elfnn-aarch64.c elf_backend_section_flags and _bfd_elf_init_private_section_data 2020-03-02 11:36:19 +10:30
elfnn-ia64.c elf_backend_section_flags and _bfd_elf_init_private_section_data 2020-03-02 11:36:19 +10:30
elfnn-riscv.c Indent labels 2020-02-26 10:37:25 +10:30
elfxx-aarch64.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elfxx-aarch64.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elfxx-ia64.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elfxx-ia64.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elfxx-mips.c ELF SEC_SMALL_DATA 2020-03-02 11:36:19 +10:30
elfxx-mips.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elfxx-riscv.c c99 elfxx-riscv.c fix 2020-02-19 13:11:17 +10:30
elfxx-riscv.h RISC-V: Change -march parsing. 2020-01-22 16:45:04 -08:00
elfxx-sparc.c Indent labels 2020-02-26 10:37:25 +10:30
elfxx-sparc.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elfxx-target.h Stop the BFD library from automatically converting OS and PROC specific symbol section indicies to SHN_ABS, and provide a hook for backends to decide how such indicies should be processed. 2020-02-20 13:08:29 +00:00
elfxx-tilegx.c bfd_size_type to size_t 2020-02-19 13:12:00 +10:30
elfxx-tilegx.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elfxx-x86.c Indent labels 2020-02-26 10:37:25 +10:30
elfxx-x86.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
format.c bfd_cleanup for object_p 2020-03-02 19:30:48 +10:30
gen-aout.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
genlink.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
go32stub.h
hash.c bfd_size_type to size_t 2020-02-19 13:12:00 +10:30
host-aout.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
hppabsd-core.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
hpux-core.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
i386aout.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
i386bsd.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
i386lynx.c Indent labels 2020-02-26 10:37:25 +10:30
i386msdos.c bfd_cleanup for object_p 2020-03-02 19:30:48 +10:30
ihex.c bfd_cleanup for object_p 2020-03-02 19:30:48 +10:30
init.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
irix-core.c bfd_size_type to size_t 2020-02-19 13:12:00 +10:30
libaout.h bfd_cleanup for object_p 2020-03-02 19:30:48 +10:30
libbfd-in.h bfd_cleanup for object_p 2020-03-02 19:30:48 +10:30
libbfd.c bfd_cleanup for object_p 2020-03-02 19:30:48 +10:30
libbfd.h bfd_cleanup for object_p 2020-03-02 19:30:48 +10:30
libcoff-in.h bfd_cleanup for object_p 2020-03-02 19:30:48 +10:30
libcoff.h bfd_cleanup for object_p 2020-03-02 19:30:48 +10:30
libecoff.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
libhppa.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
libpei.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
libxcoff.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
linker.c bfd_size_type to size_t 2020-02-19 13:12:00 +10:30
lynx-core.c _bfd_alloc_and_read 2020-02-19 14:00:55 +10:30
mach-o-aarch64.c bfd_cleanup for object_p 2020-03-02 19:30:48 +10:30
mach-o-arm.c bfd_cleanup for object_p 2020-03-02 19:30:48 +10:30
mach-o-i386.c bfd_cleanup for object_p 2020-03-02 19:30:48 +10:30
mach-o-target.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
mach-o-x86-64.c bfd_cleanup for object_p 2020-03-02 19:30:48 +10:30
mach-o.c bfd_cleanup for object_p 2020-03-02 19:30:48 +10:30
mach-o.h bfd_cleanup for object_p 2020-03-02 19:30:48 +10:30
MAINTAINERS Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
Makefile.am Tidy bfd.pot 2020-01-31 10:47:46 +10:30
Makefile.in Tidy bfd.pot 2020-01-31 10:47:46 +10:30
makefile.vms Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
mep-relocs.pl Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
merge.c Indent labels 2020-02-26 10:37:25 +10:30
mmo.c bfd_cleanup for object_p 2020-03-02 19:30:48 +10:30
netbsd-core.c bfd_size_type to size_t 2020-02-19 13:12:00 +10:30
netbsd.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ns32k.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ns32knetbsd.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
opncls.c _bfd_mul_overflow 2020-02-19 13:15:06 +10:30
osf-core.c bfd_size_type to size_t 2020-02-19 13:12:00 +10:30
pc532-mach.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
pdp11.c bfd_cleanup for object_p 2020-03-02 19:30:48 +10:30
pe-arm-wince.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
pe-arm.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
pe-i386.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
pe-mcore.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
pe-ppc.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
pe-sh.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
pe-x86_64.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
pef-traceback.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
pef.c bfd_cleanup for object_p 2020-03-02 19:30:48 +10:30
pef.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
pei-arm-wince.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
pei-arm.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
pei-i386.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
pei-ia64.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
pei-mcore.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
pei-ppc.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
pei-sh.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
pei-x86_64.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
peicode.h bfd_cleanup for object_p 2020-03-02 19:30:48 +10:30
peXXigen.c bfd_size_type to size_t 2020-02-19 13:12:00 +10:30
plugin.c bfd_cleanup for object_p 2020-03-02 19:30:48 +10:30
plugin.h bfd_cleanup for object_p 2020-03-02 19:30:48 +10:30
PORTING Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ppcboot.c bfd_cleanup for object_p 2020-03-02 19:30:48 +10:30
ptrace-core.c bfd_size_type to size_t 2020-02-19 13:12:00 +10:30
README Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
reloc16.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
reloc.c Indent labels 2020-02-26 10:37:25 +10:30
rs6000-core.c bfd_cleanup for object_p 2020-03-02 19:30:48 +10:30
sco5-core.c bfd_size_type to size_t 2020-02-19 13:12:00 +10:30
section.c ELF: Support the section flag 'o' in .section directive 2020-02-06 18:05:10 -08:00
simple.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
som.c bfd_cleanup for object_p 2020-03-02 19:30:48 +10:30
som.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
srec.c bfd_cleanup for object_p 2020-03-02 19:30:48 +10:30
stab-syms.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
stabs.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
stamp-h.in
syms.c .idata symbols should be reported with i or I flag by nm 2020-02-28 08:19:42 +10:30
sysdep.h Fix spelling errors 2020-01-17 12:34:03 -06:00
targets.c bfd_cleanup for object_p 2020-03-02 19:30:48 +10:30
targmatch.sed
tekhex.c bfd_cleanup for object_p 2020-03-02 19:30:48 +10:30
TODO Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
trad-core.c bfd_size_type to size_t 2020-02-19 13:12:00 +10:30
vax1knetbsd.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
vaxnetbsd.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
verilog.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
version.h Automatic date update in version.in 2020-03-02 00:00:22 +00:00
version.m4 Update version to 2.34.50. Regenerate configure and .pot files. 2020-01-18 14:12:07 +00:00
vms-alpha.c bfd_cleanup for object_p 2020-03-02 19:30:48 +10:30
vms-lib.c bfd_cleanup for object_p 2020-03-02 19:30:48 +10:30
vms-misc.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
vms.h ubsan: alpha-vms: segv 2020-01-14 11:02:28 +10:30
warning.m4 Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
wasm-module.c bfd_cleanup for object_p 2020-03-02 19:30:48 +10:30
wasm-module.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
xcofflink.c _bfd_alloc_and_read 2020-02-19 14:00:55 +10:30
xcofflink.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
xsym.c bfd_cleanup for object_p 2020-03-02 19:30:48 +10:30
xsym.h bfd_cleanup for object_p 2020-03-02 19:30:48 +10:30
xtensa-isa.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
xtensa-modules.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +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 with BFD to bug-binutils@gnu.org.

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-2020 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.