bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/26815] Unnecessary error on linking STV_PROTECTED library: reloc


From: hjl.tools at gmail dot com
Subject: [Bug ld/26815] Unnecessary error on linking STV_PROTECTED library: relocation R_X86_64_PC32 against protected symbol `f' can not be used when making a shared object
Date: Fri, 30 Oct 2020 00:48:26 +0000

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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2020-10-30
     Ever confirmed|0                           |1

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
Protected function pointer should be treated as normal symbol:

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

You can override it with linker options:

  -Bsymbolic                  Bind global references locally
  -Bsymbolic-functions        Bind global function references locally

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]