diff --git a/newlib/libc/machine/mips/setjmp.S b/newlib/libc/machine/mips/setjmp.S index 1bd2ff04e8..635c422520 100644 --- a/newlib/libc/machine/mips/setjmp.S +++ b/newlib/libc/machine/mips/setjmp.S @@ -133,6 +133,11 @@ #define GPOFF(INDEX) (INDEX * BYTES_PER_WORD) #define FPOFF(INDEX) ((INDEX + NUM_GPRS_SAVED) * BYTES_PER_WORD) +#ifdef __nanomips__ + .linkrelax + .module pcrel +#endif + /* int setjmp (jmp_buf); */ .globl setjmp .ent setjmp diff --git a/newlib/libc/machine/mips/strcmp.S b/newlib/libc/machine/mips/strcmp.S index dfd103ae74..82691195ba 100644 --- a/newlib/libc/machine/mips/strcmp.S +++ b/newlib/libc/machine/mips/strcmp.S @@ -77,6 +77,8 @@ #ifdef __nanomips__ # define _FUNCTION_SECTIONS_ + .linkrelax + .module pcrel #endif #ifdef ANDROID_CHANGES