aboutsummaryrefslogtreecommitdiff
path: root/Makefile.tpl
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2016-06-11 20:44:24 -0700
committerH.J. Lu <hjl.tools@gmail.com>2016-06-11 21:24:01 -0700
commit74d7f0aa5b1e27da215349fb32337e1d83aca7d7 (patch)
tree87a0960c2945a4840eee0fa1be88e8c9db639f1c /Makefile.tpl
parent0a41a307caca19383b05c8b558c25cf888c1c3f0 (diff)
downloadgdb-74d7f0aa5b1e27da215349fb32337e1d83aca7d7.zip
gdb-74d7f0aa5b1e27da215349fb32337e1d83aca7d7.tar.gz
gdb-74d7f0aa5b1e27da215349fb32337e1d83aca7d7.tar.bz2
Subtract GOT base only with a base register
When relocating R_386_GOT32 in "op $0, bar@GOT", we shouldn't subtract GOT base without a base register and we should disallow it without a base register for PIC. bfd/ PR ld/20244 * elf32-i386.c (elf_i386_relocate_section): When relocating R_386_GOT32, return error without a base register for PIC and subtract the .got.plt section address only with a base register. ld/ PR ld/20244 * testsuite/ld-i386/i386.exp: Run pr20244-1a and pr20244-1b. * testsuite/ld-i386/pr20244-1.s: New file. * testsuite/ld-i386/pr20244-1a.d: Likewise. * testsuite/ld-i386/pr20244-1b.d: Likewise. * testsuite/ld-i386/pr20244-1c.d: Likewise.
Diffstat (limited to 'Makefile.tpl')
0 files changed, 0 insertions, 0 deletions