From 71150804d1ac8ed2f7b9c6d3025fd415c58b129e Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 15 Jul 2004 07:34:00 +0000 Subject: h8300 updates from Yoshinori Sato --- libc/sysdeps/linux/h8300/vfork.S | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libc/sysdeps/linux/h8300/vfork.S') diff --git a/libc/sysdeps/linux/h8300/vfork.S b/libc/sysdeps/linux/h8300/vfork.S index e84a78d6a..e101bf5ed 100644 --- a/libc/sysdeps/linux/h8300/vfork.S +++ b/libc/sysdeps/linux/h8300/vfork.S @@ -28,7 +28,12 @@ _vfork: jmp @er1 /* don't return, just jmp directly */ fix_errno: neg.l er0 +#if !defined(__PIC__) mov.l er0,@_errno +#else + mov.l @(_errno@GOTOFF,er5),er2 + mov.l er0,@er2 +#endif sub.l er0,er0 dec.l #1,er0 jmp @er1 /* don't return, just jmp directly */ -- cgit v1.2.3