[llvm-bugs] [Bug 49693] GOT references generated for code that requests static relocation model

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Mar 23 10:24:27 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=49693

Fangrui Song <i at maskray.me> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |i at maskray.me
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from Fangrui Song <i at maskray.me> ---
The new behavior works intended and is more consistent with
--relocation-model=pic.

Traditionally ELF compilers use direct access with static relocation model,
which can cause copy relocations
(https://maskray.me/blog/2021-01-09-copy-relocations-canonical-plt-entries-and-protected)

The new behavior requires explicit dso_local, like the annotation you need for
pie/pic.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210323/24ba7ef2/attachment.html>


More information about the llvm-bugs mailing list