Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/arch/powerpc64 add a nop to provide enough space fo...
details: https://anonhg.NetBSD.org/src/rev/a47af409cbf0
branches: trunk
changeset: 753268:a47af409cbf0
user: mrg <mrg%NetBSD.org@localhost>
date: Mon Mar 22 02:17:23 2010 +0000
description:
add a nop to provide enough space for the linker and long calls.
fixes link errors with 'cerror' and libposix.
from dennis.c.ferguson%gmail.com@localhost in PR#43010.
diffstat:
lib/libc/arch/powerpc64/SYS.h | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 0f0d8716773a -r a47af409cbf0 lib/libc/arch/powerpc64/SYS.h
--- a/lib/libc/arch/powerpc64/SYS.h Mon Mar 22 02:14:28 2010 +0000
+++ b/lib/libc/arch/powerpc64/SYS.h Mon Mar 22 02:17:23 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: SYS.h,v 1.1 2006/07/01 16:37:20 ross Exp $ */
+/* $NetBSD: SYS.h,v 1.2 2010/03/22 02:17:23 mrg Exp $ */
#include <machine/asm.h>
#include <sys/syscall.h>
@@ -19,6 +19,7 @@
#define _SYSCALL(x,y) .text ;\
.align 2 ;\
2: b PIC_PLT(_C_LABEL(__cerror));\
+ nop ;\
_SYSCALL_NOERROR(x,y) ;\
bso 2b
@@ -31,7 +32,8 @@
#define PSEUDO(x,y) _SYSCALL_NOERROR(x,y) ;\
bnslr ;\
- b PIC_PLT(_C_LABEL(__cerror))
+ b PIC_PLT(_C_LABEL(__cerror));\
+ nop
#define RSYSCALL_NOERROR(x) PSEUDO_NOERROR(x,x)
Home |
Main Index |
Thread Index |
Old Index