https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99783

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Stafford Horne <sho...@gcc.gnu.org>:

https://gcc.gnu.org/g:da8a9d695b3c4b9397b5d9a27660bfa48af8d707

commit r12-2910-gda8a9d695b3c4b9397b5d9a27660bfa48af8d707
Author: Stafford Horne <sho...@gmail.com>
Date:   Wed Apr 21 05:33:15 2021 +0900

    or1k: Use cmodel=large when building crtstuff

    When linking gcc runtime objects into large binaries the link may fail
    with the below errors.  This will happen even if we are building with
    -mcmodel=large.

       
/home/shorne/work/openrisc/output/host/lib/gcc/or1k-buildroot-linux-uclibc/10.3.0/crtbeginS.o:
in function `deregister_tm_clones':
        crtstuff.c:(.text+0x3c): relocation truncated to fit: R_OR1K_GOT16
against undefined symbol `_ITM_deregisterTMCloneTable'
       
/home/shorne/work/openrisc/output/host/lib/gcc/or1k-buildroot-linux-uclibc/10.3.0/crtbeginS.o:
in function `register_tm_clones':
        crtstuff.c:(.text+0xc0): relocation truncated to fit: R_OR1K_GOT16
against undefined symbol `_ITM_registerTMCloneTable'

    This patch builds the gcc crtstuff binaries always with the
    -mcmodel=large option to ensure they can be linked into large binaries.

    libgcc/ChangeLog:

            PR target/99783
            * config.host (or1k-*, tmake_file): Add or1k/t-crtstuff.
            * config/or1k/t-crtstuff: New file.
  • [Bug target/9978... giulio.benetti at benettiengineering dot com via Gcc-bugs
    • [Bug target... cvs-commit at gcc dot gnu.org via Gcc-bugs
    • [Bug target... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to