diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2015-10-28 09:15:17 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2015-10-28 09:15:40 -0700 |
commit | 3043c1aba16b1b5bfdf6813d90ec661988ddfa3f (patch) | |
tree | edd7a887608668e498675ee58023b14917e6f48b /gdb | |
parent | a3718e9efd2e0035dc0c008c754309edd8d5ae28 (diff) | |
download | gdb-3043c1aba16b1b5bfdf6813d90ec661988ddfa3f.zip gdb-3043c1aba16b1b5bfdf6813d90ec661988ddfa3f.tar.gz gdb-3043c1aba16b1b5bfdf6813d90ec661988ddfa3f.tar.bz2 |
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 bar@GOT, %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.
Diffstat (limited to 'gdb')
0 files changed, 0 insertions, 0 deletions