binutils Newspaper
NOVEMBER 30, 2026
ld — Proposed

ld: add PE/COFF and XCOFF64 aux symbol overrun tests

Follow-up on a patch adding tests for PE/COFF and XCOFF64 aux symbol overrun issues in the linker.

Harshit Kumar is following up on a previous patch that added test cases for aux symbol overrun vulnerabilities in the linker’s handling of PE/COFF and XCOFF64 formats. The tests cover specific scenarios related to malformed symbol table entries and ensure the linker handles these edge cases gracefully, preventing crashes or incorrect behavior. The author is seeking confirmation if the patch is still needed given existing tests.

In the Thread 1 participant
  1. Harshit Kumar proposer

    Seeks confirmation on a patch adding PE/COFF and XCOFF64 aux symbol overrun tests for the linker, referencing a previous commit.

    “It adds i386 PE/COFF (ld-pe/coff-aux.exp) and 64-bit AIX (xcoff64_aux_test) aux-symbol overrun tests for 335d76afde5. It still applies cleanly to master.”

In Details

This discussion is a follow-up to a patch that adds test cases to the GNU linker (ld) to verify its robustness against malformed auxiliary symbol entries in PE/COFF (Windows) and XCOFF64 (AIX) object files. The tests specifically target an overflow condition identified in commit 335d76afde5, which had previously only included tests for 32-bit XCOFF. The author is checking if the new tests are still relevant.

For Context
PE/COFF
Portable Executable/Common Object File Format, the standard file format for executables, object code, and DLLs used in 32-bit and 64-bit versions of Windows.
XCOFF
Extended Common Object File Format, an object file format used on AIX systems. XCOFF64 refers to its 64-bit variant.
aux symbol
Auxiliary symbol entries in an object file's symbol table, which provide additional information about a symbol, such as its storage class or type.
overrun
A vulnerability or bug where a program writes data beyond the allocated buffer boundaries, potentially leading to memory corruption or crashes.
linker
A program that combines various object files and libraries into a single executable file, resolving symbol references between them.
Filed Under: linkerbinutilstestingcoffxcoff