aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/powerpc/brk.S
diff options
context:
space:
mode:
authorGreg McGary <greg@mcgary.org>2000-07-21 07:43:25 +0000
committerGreg McGary <greg@mcgary.org>2000-07-21 07:43:25 +0000
commitdf0f2bf8cccb0d1c4fc829eac281ae8f0ecef734 (patch)
tree87acdf8e6dc9683089c6e79467adea259d105f9d /sysdeps/unix/sysv/linux/powerpc/brk.S
parent137bca87e71138610a5b57e64b5e2619d6889853 (diff)
downloadglibc-df0f2bf8cccb0d1c4fc829eac281ae8f0ecef734.tar
glibc-df0f2bf8cccb0d1c4fc829eac281ae8f0ecef734.tar.gz
glibc-df0f2bf8cccb0d1c4fc829eac281ae8f0ecef734.tar.bz2
glibc-df0f2bf8cccb0d1c4fc829eac281ae8f0ecef734.zip
* sysdeps/powerpc/bp-asm.h (DISCARD_BOUNDS): Rename from UNCHECK_BOUNDS.
* sysdeps/powerpc/bits/setjmp.h (JB_SIZE): New constant. * sysdeps/powerpc/elf/libc-start.c (__libc_start_main): Wrap bounds around argv & envp and each of their string members. * sysdeps/powerpc/elf/start.S: Designate BP symbols. * sysdeps/unix/sysv/linux/powerpc/brk.S: Wrap entry-point symbol in BP_SYM (). Discard bounds of address arg. * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise. * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Discard bounds on address arg, add bounds to return value. 2000-07-21 Greg McGary <greg@mcgary.org> * sysdeps/powerpc/bp-asm.h (DISCARD_BOUNDS): Rename from UNCHECK_BOUNDS. * sysdeps/powerpc/bits/setjmp.h (JB_SIZE): New constant. * sysdeps/powerpc/elf/libc-start.c (__libc_start_main): Wrap bounds around argv & envp and each of their string members. * sysdeps/powerpc/elf/start.S: Designate BP symbols. * sysdeps/unix/sysv/linux/powerpc/brk.S: Wrap entry-point symbol in BP_SYM (). Discard bounds of address arg. * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise. * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Discard bounds on address arg, add bounds to return value.
Diffstat (limited to 'sysdeps/unix/sysv/linux/powerpc/brk.S')
-rw-r--r--sysdeps/unix/sysv/linux/powerpc/brk.S10
1 files changed, 7 insertions, 3 deletions
diff --git a/sysdeps/unix/sysv/linux/powerpc/brk.S b/sysdeps/unix/sysv/linux/powerpc/brk.S
index 69dd0ee6e8..f3350e490c 100644
--- a/sysdeps/unix/sysv/linux/powerpc/brk.S
+++ b/sysdeps/unix/sysv/linux/powerpc/brk.S
@@ -20,10 +20,14 @@
#include <sysdep.h>
#define _ERRNO_H 1
#include <bits/errno.h>
+#include <bp-sym.h>
+#include <bp-asm.h>
.comm __curbrk,4,4
.section ".text"
-ENTRY(__brk)
+ENTRY (BP_SYM (__brk))
+ DISCARD_BOUNDS (r3) /* the bounds are meaningless, so toss 'em */
+
stwu r1,-16(r1)
stw r3,8(r1)
DO_CALL(SYS_ify(brk))
@@ -45,6 +49,6 @@ ENTRY(__brk)
blelr+
li r3,ENOMEM
b JUMPTARGET(__syscall_error)
-END (__brk)
+END (BP_SYM (__brk))
-weak_alias (__brk, brk)
+weak_alias (BP_SYM (__brk), BP_SYM (brk))