[Bug c++/106834] GCC creates R_X86_64_GOTOFF64 for 4-bytes immediate

amonakov at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Sep 5 08:49:29 GMT 2022


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

Alexander Monakov <amonakov at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |amonakov at gcc dot gnu.org

--- Comment #2 from Alexander Monakov <amonakov at gcc dot gnu.org> ---
Can you show how gcc -S output looks for you on this testcase? For me the
problematic instruction is just

        movl    $_GLOBAL_OFFSET_TABLE_, %eax

or

        leaq    _GLOBAL_OFFSET_TABLE_(%rip), %rax

with -fpie, so it's the assembler who chooses the relocation type (which would
make that a Binutils bug).


More information about the Gcc-bugs mailing list