Use stub bfd for dynobj

Alan Modra amodra@gmail.com
Thu Aug 6 04:21:00 GMT 2026


This series is a followup to
https://sourceware.org/pipermail/binutils/2026-May/149276.html
being the first patch mentioned there, split into nine.

Alan Modra (9):
  bfin, frv, m68k, vax: got creation in check_relocs
  elflink.c: remove duplicate dynobj assignment
  elflink.c: miscellaneous formatting/style fixes
  elflink.c: input object compatibility checks
  elflink.c: split _bfd_elf_link_create_dynstrtab
  elflink.c: _bfd_elf_make_dynamic_reloc_section sanity checks
  elflink.c: dynobj
  prepare stub bfd for use as dynobj
  use linker created stub bfd for dynobj

 bfd/elf-bfd.h                     |  12 +-
 bfd/elf-m10300.c                  |   4 +-
 bfd/elf32-arc.c                   |   8 +-
 bfd/elf32-arm.c                   |  57 ++++----
 bfd/elf32-bfin.c                  |  21 ++-
 bfd/elf32-cr16.c                  |   4 +-
 bfd/elf32-cris.c                  |   6 +-
 bfd/elf32-csky.c                  |  10 +-
 bfd/elf32-frv.c                   |   8 +-
 bfd/elf32-lm32.c                  |  18 ++-
 bfd/elf32-m32c.c                  |   6 +-
 bfd/elf32-m32r.c                  |  12 +-
 bfd/elf32-m68k.c                  |   8 +-
 bfd/elf32-metag.c                 |  47 ++++---
 bfd/elf32-microblaze.c            |  19 ++-
 bfd/elf32-nds32.c                 |  12 +-
 bfd/elf32-or1k.c                  |  15 ++-
 bfd/elf32-ppc.c                   |  25 ++--
 bfd/elf32-rl78.c                  |   6 +-
 bfd/elf32-s390.c                  |  20 +--
 bfd/elf32-score.c                 |  18 ++-
 bfd/elf32-score7.c                |  18 ++-
 bfd/elf32-sh.c                    |  10 +-
 bfd/elf32-spu.c                   |   6 +-
 bfd/elf32-tic6x.c                 |  12 +-
 bfd/elf32-tilepro.c               |   7 +-
 bfd/elf32-vax.c                   |   8 +-
 bfd/elf32-xstormy16.c             |   6 +-
 bfd/elf64-alpha.c                 |   7 +-
 bfd/elf64-hppa.c                  |  64 ++++-----
 bfd/elf64-ia64-vms.c              |  47 ++++---
 bfd/elf64-s390.c                  |  20 +--
 bfd/elflink.c                     | 213 ++++++++++++++----------------
 bfd/elfnn-aarch64.c               |  55 ++++----
 bfd/elfnn-ia64.c                  |  43 +++---
 bfd/elfnn-kvx.c                   |  20 ++-
 bfd/elfnn-loongarch.c             |  13 +-
 bfd/elfnn-riscv.c                 |   5 +-
 bfd/elfxx-aarch64.h               |   8 +-
 bfd/elfxx-mips.c                  |  12 +-
 bfd/elfxx-sparc.c                 |   5 +-
 bfd/elfxx-tilegx.c                |  11 +-
 bfd/elfxx-x86.c                   |  31 +----
 ld/emultempl/aarch64elf.em        |  22 +--
 ld/emultempl/metagelf.em          |   1 +
 ld/emultempl/vxworks.em           |   3 +-
 ld/testsuite/ld-aarch64/relocs.ld |  15 +++
 47 files changed, 550 insertions(+), 448 deletions(-)



More information about the Binutils mailing list