mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-04 10:50:07 +00:00
5e5b3b8866
Building glibc with gcc configured with --enable-default-pie failed on s390 due to assembler messages: ../sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:44: Error: junk at end of line, first unrecognized character is `@' HIDDEN_JUMPTARGET was expanded to exit@PLT@GOTOFF. If SHARED is not defined, HIDDEN_JUMPTARGET is defined to JUMPTARGET in sysdeps/s390/s390-32/sysdep.h. There it expanded to exit@PLT in non SHARED case as PIC is defined if gcc is configured with --enable-default-pie. Thus I've changed the "ifdef PIC" to "ifdef SHARED" as we do not want PLTs in the static obj files. I've also changed this in sysdeps/s390/s390-64/sysdep.h. I've also adjusted sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S. If glibc is configured with --disable-hidden-plt, then NO_HIDDEN is defined. In SHARED case HIDDEN_JUMPTARGET would be expanded to exit@PLT@GOTOFF instead of __GI_exit@GOTOFF. Now we jump to: - __GI_exit if SHARED is defined - exit@PLT if SHARED and NO_HIDDEN is defined - exit if both are not defined. On s390 31bit we have to setup GOT pointer in r12 if we use a PLT stub. Therefore I use SYSCALL_PIC_SETUP from sysdep.h and added the missing semicolons. ChangeLog: [BZ #21537] * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET, SYSCALL_PIC_SETUP): Check SHARED instead of PIC. (SYSCALL_PIC_SETUP): Add missing semicolons. * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET, SYSCALL_PIC_SETUP): Check SHARED instead of PIC. * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S (__makecontext_ret): Adjust code to jump to exit. |
||
---|---|---|
.. | ||
____longjmp_chk.c | ||
__makecontext_ret.S | ||
alphasort64.c | ||
c++-types.data | ||
clone.S | ||
fcntl.c | ||
fxstat.c | ||
fxstatat.c | ||
getcontext.S | ||
getdents64.c | ||
getutent_r.c | ||
getutent.c | ||
getutid_r.c | ||
getutid.c | ||
getutline_r.c | ||
getutline.c | ||
getutmp.c | ||
getutxent.c | ||
getutxid.c | ||
getutxline.c | ||
ld.abilist | ||
libBrokenLocale.abilist | ||
libc.abilist | ||
libcrypt.abilist | ||
libdl.abilist | ||
libm.abilist | ||
libnsl.abilist | ||
libpthread.abilist | ||
libresolv.abilist | ||
librt.abilist | ||
libthread_db.abilist | ||
libutil.abilist | ||
lockf64.c | ||
login32.c | ||
login.c | ||
lxstat.c | ||
makecontext.c | ||
Makefile | ||
posix_fadvise64.c | ||
profil-counter.h | ||
pututxline.c | ||
readdir64_r.c | ||
readdir64.c | ||
register-dump.h | ||
scandir64.c | ||
setcontext.S | ||
swapcontext.S | ||
syscall.S | ||
syscalls.list | ||
sysdep-cancel.h | ||
sysdep.h | ||
sysdep.S | ||
updwtmp.c | ||
updwtmpx.c | ||
utmp32.c | ||
utmp32.h | ||
utmp-compat.h | ||
utmp-convert.h | ||
utmpx32.c | ||
utmpx32.h | ||
utmpx-convert.h | ||
Versions | ||
versionsort64.c | ||
vfork.S | ||
xstat.c |