[PATCH v2 0/2] Fix orphan_init_done for the object-only output

H.J. Lu hjl.tools@gmail.com
Wed Jan 15 11:03:45 GMT 2025


Since the object-only only will call gld${EMULATION_NAME}_place_orphan
twice, update gld${EMULATION_NAME}_place_orphan to initialize hold from
from orig_hold at run-time in in PE and PEP emulations.  Also update
ldelf_place_orphan to remove the extra for loop and if statement.

H.J. Lu (2):
  ld: Correct ldelf_place_orphan
  ld: Update gld${EMULATION_NAME}_place_orphan for PE/PEP

 ld/emultempl/pe.em  | 32 +++++++++++++++++++++-----------
 ld/emultempl/pep.em | 32 +++++++++++++++++++++-----------
 ld/ldelf.c          | 12 +++++-------
 3 files changed, 47 insertions(+), 29 deletions(-)

-- 
2.47.1



More information about the Binutils mailing list