[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gold/16945] [Gold] Executable with -fpie and -mcmodel=large gives s
From: |
cvs-commit at gcc dot gnu.org |
Subject: |
[Bug gold/16945] [Gold] Executable with -fpie and -mcmodel=large gives segfault on start |
Date: |
Tue, 27 May 2014 20:17:41 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=16945
--- Comment #3 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot
gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gdb and binutils".
The branch, binutils-2_24-branch has been updated
via 58a19a05d4e88b74e17cfae6f1c1c5c5e7be1537 (commit)
from c6badce4c1a34cdbd7384381ff99bffef7506044 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=58a19a05d4e88b74e17cfae6f1c1c5c5e7be1537
commit 58a19a05d4e88b74e17cfae6f1c1c5c5e7be1537
Author: H.J. Lu <address@hidden>
Date: Tue May 27 12:19:33 2014 -0700
Properly handle 64-bit GOT relocations
This patch fixes 2 issues:
1. Since the GOT offset is always negative, we need to use signed int
to support 64-bit GOT relocations.
2. R_X86_64_PLTOFF64 uses the address of GLOBAL_OFFSET_TABLE, which is
the address of the .got.plt section, not the .got section.
PR gold/16945
* x86_64.cc (Target_x86_64::Relocate::relocate): Use signed int
for got_offset. Properly get GOT address for R_X86_64_PLTOFF64.
-----------------------------------------------------------------------
Summary of changes:
gold/ChangeLog | 6 ++++++
gold/x86_64.cc | 7 +++++--
2 files changed, 11 insertions(+), 2 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.