aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/powerpc/brk.S
diff options
context:
space:
mode:
authorGeoff Keating <geoffk@cygnus.com>2000-01-27 23:40:48 +0000
committerGeoff Keating <geoffk@cygnus.com>2000-01-27 23:40:48 +0000
commit053cc7bbc8ff66ab81f3e1d3ed89900785acd06f (patch)
treed5d6ce348e80d3b21d8040f822b1ed1e624c86f6 /sysdeps/unix/sysv/linux/powerpc/brk.S
parentc1ed883ffc734abd578fe13eaa74998746fb4454 (diff)
downloadglibc-053cc7bbc8ff66ab81f3e1d3ed89900785acd06f.tar
glibc-053cc7bbc8ff66ab81f3e1d3ed89900785acd06f.tar.gz
glibc-053cc7bbc8ff66ab81f3e1d3ed89900785acd06f.tar.bz2
glibc-053cc7bbc8ff66ab81f3e1d3ed89900785acd06f.zip
* csu/Makefile ($(objpfx)version-info.h): Don't use echo -n
unnecessarily. * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_STAT64_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL, __ASSUME_NEW_GETRLIMIT_SYSCALL): Define on powerpc for kernels >= 2.3.35. * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: New file. * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: New file. * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: New file. * sysdeps/unix/sysv/linux/powerpc/getrlimit64.c: New file. * sysdeps/unix/sysv/linux/powerpc/mmap64.c: New file. * sysdeps/unix/sysv/linux/powerpc/setrlimit.c: New file. * sysdeps/unix/sysv/linux/powerpc/setrlimit64.c: New file. * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_fstat64, s_ftruncate64, s_lstat64, s_mmap2, s_stat64, s_truncate64. * sysdeps/unix/sysv/linux/powerpc/truncate64.c: New file. * sysdeps/unix/sysv/linux/powerpc/Versions: New file. * sysdeps/unix/sysv/linux/powerpc/brk.S [!PIC]: Don't access __curbrk off the small data area register. Reported by Andrew Haley <aph@pasanda.cygnus.co.uk>. 2000-01-27 Geoff Keating <geoffk@cygnus.com> * csu/Makefile ($(objpfx)version-info.h): Don't use echo -n unnecessarily. * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_STAT64_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL, __ASSUME_NEW_GETRLIMIT_SYSCALL): Define on powerpc for kernels >= 2.3.35. * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: New file. * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: New file. * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: New file. * sysdeps/unix/sysv/linux/powerpc/getrlimit64.c: New file. * sysdeps/unix/sysv/linux/powerpc/mmap64.c: New file. * sysdeps/unix/sysv/linux/powerpc/setrlimit.c: New file. * sysdeps/unix/sysv/linux/powerpc/setrlimit64.c: New file. * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_fstat64, s_ftruncate64, s_lstat64, s_mmap2, s_stat64, s_truncate64. * sysdeps/unix/sysv/linux/powerpc/truncate64.c: New file. * sysdeps/unix/sysv/linux/powerpc/Versions: New file. * sysdeps/unix/sysv/linux/powerpc/brk.S [!PIC]: Don't access __curbrk off the small data area register. Reported by Andrew Haley <aph@pasanda.cygnus.co.uk>.
Diffstat (limited to 'sysdeps/unix/sysv/linux/powerpc/brk.S')
-rw-r--r--sysdeps/unix/sysv/linux/powerpc/brk.S5
1 files changed, 3 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/powerpc/brk.S b/sysdeps/unix/sysv/linux/powerpc/brk.S
index 16f5215fd4..3147bafaee 100644
--- a/sysdeps/unix/sysv/linux/powerpc/brk.S
+++ b/sysdeps/unix/sysv/linux/powerpc/brk.S
@@ -1,5 +1,5 @@
/* brk system call for Linux/ppc.
- Copyright (C) 1995, 1996, 1997, 1999 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996, 1997, 1999, 2000 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -36,7 +36,8 @@ ENTRY(__brk)
mtlr r4
stw r3,0(r5)
#else
- stw r3,__curbrk@sdarel(r13)
+ lis r4,__curbrk@ha
+ stw r3,__curbrk@sdarel(r4)
#endif
cmplw r6,r3
addi r1,r1,16