binutils-gdb/ld/testsuite/ld-s390
Andreas Krebbel 161db27905 Fix PLT first entry GOT operand calculation.
Embedding the .plt section in another revealed a bug in the way the
larl operand of the first magic plt entry is being calculated.  Fixed
with the attached patch.

bfd/ChangeLog:

	* elf64-s390.c (elf_s390_finish_dynamic_sections): Subtract plt
	section offset when calculation the larl operand in the first PLT
	entry.

ld/ChangeLog:

	* testsuite/ld-s390/pltoffset-1.dd: New test.
	* testsuite/ld-s390/pltoffset-1.ld: New test.
	* testsuite/ld-s390/pltoffset-1.s: New test.
	* testsuite/ld-s390/s390.exp: Run new test.
2016-06-07 16:47:10 +02:00
..
gotreloc_31-1.dd
gotreloc_64-1.dd
gotreloc-1.s
gotreloc-1.ver
pltoffset-1.dd
pltoffset-1.ld
pltoffset-1.s
s390.exp
tlsbin_64.dd
tlsbin_64.rd
tlsbin_64.s
tlsbin_64.sd
tlsbin_64.td
tlsbin.dd
tlsbin.rd
tlsbin.s
tlsbin.sd
tlsbin.td
tlsbinpic_64.s
tlsbinpic.s
tlslib_64.s
tlslib.s
tlspic1_64.s
tlspic1.s
tlspic2_64.s
tlspic2.s
tlspic_64.dd
tlspic_64.rd
tlspic_64.sd
tlspic_64.td
tlspic.dd
tlspic.rd
tlspic.sd
tlspic.td