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

Message ID 20250115110347.1718501-1-hjl.tools@gmail.com
Headers
Series Fix orphan_init_done for the object-only output |

Message

H.J. Lu Jan. 15, 2025, 11:03 a.m. UTC
  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(-)
  

Comments

Alan Modra Jan. 15, 2025, 11:58 a.m. UTC | #1
On Wed, Jan 15, 2025 at 07:03:45PM +0800, H.J. Lu wrote:
> 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

OK.