[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/25749] Non-const relocation against SHN_ABS symbol in PIE or sha
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug ld/25749] Non-const relocation against SHN_ABS symbol in PIE or shared library should be disallowed |
Date: |
Mon, 30 Mar 2020 18:41:51 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=25749
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|PC relocation against |Non-const relocation
|SHN_ABS symbol in PIE or |against SHN_ABS symbol in
|shared library should be |PIE or shared library
|disallowed |should be disallowed
--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
Since the value of SHN_ABS symbol is a constant, only S - A relocations
should be allowed in PIE and shared library, which means only BFD_RELOC_8,
BFD_RELOC_16, BFD_RELOC_32, and BFD_RELOC_64 are allowed for SHN_ABS symbol
in PIE and shared library.
--
You are receiving this mail because:
You are on the CC list for the bug.