From a31567f46f9b30f2979223c42502c7a57f41b703 Mon Sep 17 00:00:00 2001 From: Robert Millan Date: Wed, 15 Feb 2012 22:39:15 +0000 Subject: [PATCH] Define SYSCALL_ERROR_LABEL for mips32. --- ChangeLog.mips | 6 ++++++ sysdeps/unix/sysv/linux/mips/mips32/sysdep.h | 10 +++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/ChangeLog.mips b/ChangeLog.mips index 4d66c84e2a..0d43038df3 100644 --- a/ChangeLog.mips +++ b/ChangeLog.mips @@ -1,3 +1,9 @@ +2012-02-15 Robert Millan + + [BZ #12301] + * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h [__ASSEMBLER__] + [__PIC__] (SYSCALL_ERROR_LABEL): New macro. + 2012-02-15 Robert Millan [BZ #12298] diff --git a/sysdeps/unix/sysv/linux/mips/mips32/sysdep.h b/sysdeps/unix/sysv/linux/mips/mips32/sysdep.h index 061e322448..57de0a4342 100644 --- a/sysdeps/unix/sysv/linux/mips/mips32/sysdep.h +++ b/sysdeps/unix/sysv/linux/mips/mips32/sysdep.h @@ -37,7 +37,15 @@ #undef SYS_ify #define SYS_ify(syscall_name) __NR_##syscall_name -#ifndef __ASSEMBLER__ +#ifdef __ASSEMBLER__ + +/* We don't want the label for the error handler to be visible in the symbol + table when we define it here. */ +#ifdef __PIC__ +# define SYSCALL_ERROR_LABEL 99b +#endif + +#else /* ! __ASSEMBLER__ */ /* Define a macro which expands into the inline wrapper code for a system call. */ -- 2.43.5