binutils Newspaper
NOVEMBER 30, 2026
ld — Proposed

ld: arm: Test Thumb PLT sizing after attribute merging

Gentle ping for review of a patch that adds regression tests for Thumb PLT sizing issues in the ARM linker.

This is a follow-up to a patch submitted in October that addresses a PLT sizing bug in the ARM linker when linking Thumb-only code with Thumb-2 support. The bug occurs due to a mismatch in PLT header and entry sizes between ARM and Thumb, leading to corrupted PLT instructions. The author is pinging for a review of the patch and its associated test cases.

In the Thread 1 participant
  1. Torbjorn SVENSSON proposer

    Follows up on a previously submitted patch by gently pinging for review.

    “Another gentle ping! :)”

In Details

This thread concerns a patch for the GNU linker (ld) targeting ARM processors. Specifically, it addresses an issue with Procedure Linkage Table (PLT) sizing when linking Thumb-only code with Thumb-2 support. The problem arises from differing attribute merging during linking, leading to incorrect space allocation for PLT entries and subsequent corruption.

For Context
PLT
Procedure Linkage Table. A table used in dynamically linked executables to resolve function calls to external libraries at runtime.
Thumb
A 16-bit instruction set architecture for ARM processors, designed for code density.
Thumb-2
An extension to the Thumb instruction set that includes both 16-bit and 32-bit instructions, offering improved performance and code density.
ARM linker
The component of the GNU toolchain responsible for combining object files and libraries into an executable or shared library for ARM processors.
Filed Under: binutilsldARMlinking