https://sourceware.org/bugzilla/show_bug.cgi?id=33885

--- Comment #2 from Sourceware Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Fangrui Song <[email protected]>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=eec25cabd2d004cfc2a9898b1ec93cbdef2fcd77

commit eec25cabd2d004cfc2a9898b1ec93cbdef2fcd77
Author: Fangrui Song <[email protected]>
Date:   Sun Feb 8 11:56:49 2026 -0800

    gas: add --reloc-section-sym={all,internal,none} option for ELF

    When generating relocations for non-ifunc local symbols that satisfies
    several conditions, GAS converts them to reference the section symbol
    (STT_SECTION) instead, folding the original symbol's offset into the
    addend.  This allows the original local symbol to be omitted from
    .symtab, but the STT_SECTION symbol itself must be present, so the
    conversion saves .symtab entries only when a section has more than one
    local symbol referenced by relocations.

    Add --reloc-section-sym to control this conversion:

    - all (default): convert all eligible local symbols
    - internal: only convert compiler-generated locals (.L prefix)
    - none: never convert; keep all symbols as-is in relocations

    This is useful for debugging and for tools that benefit from preserved
    symbol names.

    PR gas/33885

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to