mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 13:00:06 +00:00
Skip extra zeroes when searching auxv on s390
This commit is contained in:
parent
7b57bfe598
commit
1044270502
@ -1,3 +1,8 @@
|
||||
2011-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
|
||||
|
||||
* sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
|
||||
between environment variables and auxiliary vector.
|
||||
|
||||
2011-04-16 Ulrich Drepper <drepper@gmail.com>
|
||||
|
||||
* Makefile: Add rules to build linkobj/libc.so.
|
||||
|
@ -75,6 +75,18 @@ _start:
|
||||
ltr %r5,%r5
|
||||
jne .L12
|
||||
|
||||
/* Usually the auxiliary vector can be expected directly after
|
||||
the environment variables. But we have to skip extra zeros
|
||||
because the loader might have removed unsecure variables for
|
||||
setuid programs. */
|
||||
|
||||
.L26: l %r5,0(%r6)
|
||||
la %r6,4(%r6)
|
||||
ltr %r5,%r5
|
||||
jz .L26
|
||||
|
||||
ahi %r6,-4
|
||||
|
||||
/* Obtain the needed values from the auxiliary vector. */
|
||||
|
||||
lhi %r7,16 /* AT_HWCAP */
|
||||
|
Loading…
Reference in New Issue
Block a user