mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
* sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
by a GOT relocation to make Scrt1.o position independent. * sysdeps/s390/s390-64/elf/start.S: Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for six system call parameters. * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2001 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 2001, 2006 Free Software Foundation, Inc.
|
||||
Contributed by Martin Schwidefsky (schwidefsky@de.ibm.com).
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
@@ -48,13 +48,14 @@ ENTRY (syscall)
|
||||
lgr %r4,%r5 /* Third parameter. */
|
||||
lgr %r5,%r6 /* Fourth parameter. */
|
||||
lg %r6,320(%r15) /* Fifth parameter. */
|
||||
lg %r7,328(%r15) /* Sixth parameter. */
|
||||
|
||||
basr %r7,0
|
||||
0: clg %r1,4f-0b(%r7) /* svc number < 256? */
|
||||
basr %r8,0
|
||||
0: clg %r1,4f-0b(%r8) /* svc number < 256? */
|
||||
jl 2f
|
||||
1: svc 0
|
||||
j 3f
|
||||
2: ex %r1,1b-0b(%r7) /* lsb of R1 is subsituted as SVC number */
|
||||
2: ex %r1,1b-0b(%r8) /* lsb of R1 is subsituted as SVC number */
|
||||
3: lg %r15,0(%r15) /* load back chain */
|
||||
cfi_adjust_cfa_offset (-160)
|
||||
lmg %r6,15,48(%r15) /* Load registers. */
|
||||
|
Reference in New Issue
Block a user