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. */