]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
bfd: replace _bfd_merge_sections() hook with simple boolean
authorJan Beulich <jbeulich@suse.com>
Fri, 24 Oct 2025 13:11:39 +0000 (15:11 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 24 Oct 2025 13:11:39 +0000 (15:11 +0200)
commitcaccc182b5e0743dde736560ae87e4891a812818
tree7cea23442e0a1901b3dcd45ecbea7799243098cf
parent810b19952d5d89405c80b468ba5182a5319dbb3e
bfd: replace _bfd_merge_sections() hook with simple boolean

There's no need for a hook; what needs doing is uniform, the question is
only whether to perform any merging (i.e. whether other parts of a backend
are capable of dealing with the effects).

Where _bfd_nolink_bfd_merge_sections() was used, false is hardcoded. For
ELF no real target override is permitted; true is hardcoded except for the
cases where bfd_generic_merge_sections() was used as the hook function
before.
50 files changed:
bfd/aout-target.h
bfd/bfd-in2.h
bfd/bfd.c
bfd/binary.c
bfd/cisco-core.c
bfd/coff-aarch64.c
bfd/coff-alpha.c
bfd/coff-i386.c
bfd/coff-ia64.c
bfd/coff-loongarch64.c
bfd/coff-mips.c
bfd/coff-riscv64.c
bfd/coff-rs6000.c
bfd/coff-sh.c
bfd/coff-tic30.c
bfd/coff-tic54x.c
bfd/coff-x86_64.c
bfd/coff64-rs6000.c
bfd/coffcode.h
bfd/elfxx-target.h
bfd/hppabsd-core.c
bfd/hpux-core.c
bfd/i386msdos.c
bfd/ihex.c
bfd/irix-core.c
bfd/libbfd-in.h
bfd/libbfd.h
bfd/mach-o-target.c
bfd/merge.c
bfd/mmo.c
bfd/netbsd-core.c
bfd/osf-core.c
bfd/pdb.c
bfd/pdp11.c
bfd/pef.c
bfd/plugin.c
bfd/ppcboot.c
bfd/ptrace-core.c
bfd/reloc.c
bfd/som.c
bfd/srec.c
bfd/targets.c
bfd/tekhex.c
bfd/trad-core.c
bfd/verilog.c
bfd/vms-alpha.c
bfd/vms-lib.c
bfd/wasm-module.c
bfd/xsym.c
include/bfdlink.h