glibc/sysdeps/unix
Stefan Liebler a0d47f487f S390: Support PLT and GOT references in check-localplt.
on s390x the test elf/check-localplt is failing after recent commits:
"elf: Do not use memalign for TCB/TLS blocks allocation [BZ #17730]"
"elf: Avoid using memalign for TLS allocations [BZ #17730]"
"elf: dl-minimal malloc needs to respect fundamental alignment"
due to "Missing required PLT reference: ld.so: __libc_memalign".

After the commits __libc_memalign is only called in elf/dl-minimal.c in
malloc() function in ld.so and gcc -O2/-O3 leads to R_390_GLOB_DAT
instead of R_390_JMP_SLOT. __libc_memalign is called via
function-pointer loaded from GOT instead of calling via a plt-stub. In
this case there is the R_390_GLOB_DAT relocation in section .rela.dyn
instead of R_390_JMP_SLOT in .rela.plt.
This patch marks ld.so: __libc_memalign with R_390_GLOB_DAT in
localplt.data to allow both relocations.
If build with -fno-optimize-sibling-calls or on s390(31bit) a
R_390_JMP_SLOT is generated.

ChangeLog:

	* sysdeps/unix/sysv/linux/s390/localplt.data: Mark
	ld.so: __libc_memalign with "+ RELA R_390_GLOB_DAT".
2016-09-06 14:44:15 +02:00
..
alpha Do not override objects in libc.a in other static libraries [BZ #20452] 2016-08-17 14:57:01 +02:00
arm Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
bsd Make padding in struct sockaddr_storage explicit [BZ #20111] 2016-05-23 19:43:09 +02:00
i386 Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
inet
mips Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
powerpc Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
sh Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
sysv/linux S390: Support PLT and GOT references in check-localplt. 2016-09-06 14:44:15 +02:00
x86_64 Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
Implies
Makefile Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
clock_gettime.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
clock_nanosleep.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
clock_settime.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
confstr.h
get_child_max.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
getlogin.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
getlogin_r.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
getpagesize.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
grantpt.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
ifreq.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
make-syscalls.sh Make shebang interpreter directives consistent 2016-01-07 04:03:21 -05:00
s-proto-cancel.S
s-proto.S
setxid.h
sockatmark.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
stime.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
syscall-template.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
syscall.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
syscalls.list
sysdep.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00