Landing: 0a84e5602163

Project / Subsystem

binutils / x86

Date

2026-08-05

Author

H.J. Lu

Commit

0a84e5602163e9f95a6f137ced28aff0507ce790

Source

public_inbox

Perf win

No

Breaking

No

All attributes

project
binutils
subsystem
x86
patch_id
—
commit_hash
0a84e5602163e9f95a6f137ced28aff0507ce790
source_type
public_inbox
headline
Ensure dynamic relocation section is created when needed
tldr
x86 linker now correctly handles errors during relocation processing to ensure dynamic relocation sections are created.
author
H.J. Lu
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • x86
  • • linker
  • • relocation
  • • elf
  • • error handling
discussion_id_link
—
bugzilla_pr
—
date
2026-08-05T00:00:00.000Z

The x86 linker now correctly handles cases where a dynamic relocation section is needed but hasn’t been created due to earlier relocation processing errors. Previously, if elf_link_read_relocs_from_section aborted due to a bad relocation, subsequent processing would halt, preventing the creation of the necessary dynamic relocation section. This commit adds a check to skip dynamic relocation counting if the needed section has not been created, preventing potential errors and ensuring correct linking.