Module Name:    src
Committed By:   mrg
Date:           Mon Mar 22 02:17:23 UTC 2010

Modified Files:
        src/lib/libc/arch/powerpc64: SYS.h

Log Message:
add a nop to provide enough space for the linker and long calls.
fixes link errors with 'cerror' and libposix.

from [email protected] in PR#43010.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libc/arch/powerpc64/SYS.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/arch/powerpc64/SYS.h
diff -u src/lib/libc/arch/powerpc64/SYS.h:1.1 src/lib/libc/arch/powerpc64/SYS.h:1.2
--- src/lib/libc/arch/powerpc64/SYS.h:1.1	Sat Jul  1 16:37:20 2006
+++ src/lib/libc/arch/powerpc64/SYS.h	Mon Mar 22 02:17:23 2010
@@ -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)
 

Reply via email to