[Bug build/34311] THP tests failed to link

"cvs-commit at gcc dot gnu.org via Glibc-bugs" <[email protected]> Tue, 23 Jun 2026 22:19:04 +0000
Newsgroups gmane.comp.lib.glibc.bugs
Message-ID <[email protected]/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=34311

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

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=d00085d6d0975715607e74945d4fde66a1823052

commit d00085d6d0975715607e74945d4fde66a1823052
Author: H.J. Lu <[email protected]>
Date:   Tue Jun 23 08:10:05 2026 +0800

    thp: Limit THP code padding to 2 * THP page size

    Since R_ARC_S25W_PCREL range is limited, 32MB THP code padding leads to
    relocation overflow:

    .../support/libsupport_nonshared.a(support_test_main.oS):
    in function `support_test_main':
    .../support/support_test_main.c:396:(.text+0x650): relocation truncated to
fit: R_ARC_S25W_PCREL_PLT against symbol `atexit' defined in .text section in
    ../glibc/libc_nonshared.a(atexit.oS)
    .../install/compilers/arc-linux-gnu/arc-glibc-linux-gnu/bin/ld: final link
failed
    collect2: error: ld returned 1 exit status

    Limit THP code padding to 2 * THP page size to avoid R_ARC_S25W_PCREL
    relocation overflow.

    Tested natively for Linux/x86-64 and Linux/i686 as well as with
    build-many-glibcs.py for arc-linux-gnu.

    This fixes BZ #34311

    Signed-off-by: H.J. Lu <[email protected]>
    Reviewed-by: Adhemerval Zanella  <[email protected]>

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