[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/22791] PLT32 should be used for 32-bit PC-relative branches
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug gas/22791] PLT32 should be used for 32-bit PC-relative branches |
Date: |
Wed, 07 Feb 2018 14:16:05 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=22791
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target| |x86-64
Status|UNCONFIRMED |NEW
Last reconfirmed| |2018-02-07
Component|gold |gas
Version|unspecified |2.31 (HEAD)
Assignee|ccoutant at gmail dot com |unassigned at
sourceware dot org
Summary|Don't error when a -pie |PLT32 should be used for
|executable uses a shared |32-bit PC-relative branches
|function without PIC/PIE |
|relocation |
Ever confirmed|0 |1
--- Comment #15 from H.J. Lu <hjl.tools at gmail dot com> ---
On i386, there are 2 types of PLTs, PIC and non-PIC. PIE and shared objects
must use PIC PLT. To use PIC PLT, you need to load _GLOBAL_OFFSET_TABLE_
into EBX first. There is no need for that on x86-64 since x86-64 uses
PC-relative PLT.
For 32-bit PC-relative branches, we can generate PLT32 relocation, instead of
PC32 relocation, which can also be used as a marker for 32-bit PC-relative
branches. Linker can always reduce PLT32 relocation to PC32 if function is
defined locally. Local functions should use PC32 relocation.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug gold/22791] Don't error when a -pie executable uses a shared function without PIC/PIE relocation, (continued)
- [Bug gold/22791] Don't error when a -pie executable uses a shared function without PIC/PIE relocation, rafael.espindola at gmail dot com, 2018/02/05
- [Bug gold/22791] Don't error when a -pie executable uses a shared function without PIC/PIE relocation, rafael.espindola at gmail dot com, 2018/02/05
- [Bug gold/22791] Don't error when a -pie executable uses a shared function without PIC/PIE relocation, rafael.espindola at gmail dot com, 2018/02/05
- [Bug gold/22791] Don't error when a -pie executable uses a shared function without PIC/PIE relocation, ccoutant at gmail dot com, 2018/02/05
- [Bug gold/22791] Don't error when a -pie executable uses a shared function without PIC/PIE relocation, rafael.espindola at gmail dot com, 2018/02/05
- [Bug gold/22791] Don't error when a -pie executable uses a shared function without PIC/PIE relocation, ccoutant at gmail dot com, 2018/02/05
- [Bug gold/22791] Don't error when a -pie executable uses a shared function without PIC/PIE relocation, rafael.espindola at gmail dot com, 2018/02/05
- [Bug gold/22791] Don't error when a -pie executable uses a shared function without PIC/PIE relocation, hjl.tools at gmail dot com, 2018/02/06
- [Bug gold/22791] Don't error when a -pie executable uses a shared function without PIC/PIE relocation, ccoutant at gmail dot com, 2018/02/06
- [Bug gold/22791] Don't error when a -pie executable uses a shared function without PIC/PIE relocation, hjl.tools at gmail dot com, 2018/02/06
- [Bug gas/22791] PLT32 should be used for 32-bit PC-relative branches,
hjl.tools at gmail dot com <=
- [Bug gas/22791] PLT32 should be used for 32-bit PC-relative branches, rafael.espindola at gmail dot com, 2018/02/07
- [Bug gas/22791] PLT32 should be used for 32-bit PC-relative branches, hjl.tools at gmail dot com, 2018/02/07
- [Bug gas/22791] PLT32 should be used for 32-bit PC-relative branches, cvs-commit at gcc dot gnu.org, 2018/02/13
- [Bug gas/22791] PLT32 should be used for 32-bit PC-relative branches, hjl.tools at gmail dot com, 2018/02/13
- [Bug gas/22791] PLT32 should be used for 32-bit PC-relative branches, rafael.espindola at gmail dot com, 2018/02/13
- [Bug gas/22791] PLT32 should be used for 32-bit PC-relative branches, hjl.tools at gmail dot com, 2018/02/13
- [Bug gas/22791] PLT32 should be used for 32-bit PC-relative branches, rafael.espindola at gmail dot com, 2018/02/13