[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gold/19177] gold doesn't handle R_386_GOT32X relocation without bas
From: |
cvs-commit at gcc dot gnu.org |
Subject: |
[Bug gold/19177] gold doesn't handle R_386_GOT32X relocation without base register |
Date: |
Wed, 28 Oct 2015 16:23:53 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=19177
--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot
gnu.org> ---
The master branch has been updated by H.J. Lu <address@hidden>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=3043c1aba16b1b5bfdf6813d90ec661988ddfa3f
commit 3043c1aba16b1b5bfdf6813d90ec661988ddfa3f
Author: H.J. Lu <address@hidden>
Date: Wed Oct 28 09:15:17 2015 -0700
Check R_386_GOT32/R_386_GOT32X without base register
The R_386_GOT32 and R_386_GOT32X relocations may be used without base
register:
movl address@hidden, %eax
Its calculation is G + A, instead of G + A - GOT, and it can only used
to generate non-PIC executable. Include the .got.plt section address
for R_386_GOT32 and R_386_GOT32X relocations without base register.
Don't allow R_386_GOT32 and R_386_GOT32X relocations without base
register when making a PIC output.
PR gold/19177
* i386.cc (Target_i386::Relocate::relocate): Check R_386_GOT32
and R_386_GOT32X relocations without base register.
--
You are receiving this mail because:
You are on the CC list for the bug.