diff options
Diffstat (limited to 'ld/testsuite/ld-mips-elf/pic-reloc-7.d')
-rw-r--r-- | ld/testsuite/ld-mips-elf/pic-reloc-7.d | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ld/testsuite/ld-mips-elf/pic-reloc-7.d b/ld/testsuite/ld-mips-elf/pic-reloc-7.d new file mode 100644 index 0000000..e5dfa58 --- /dev/null +++ b/ld/testsuite/ld-mips-elf/pic-reloc-7.d @@ -0,0 +1,8 @@ +#name: MIPS PIC relocation 7 +#ld: -shared -T pic-reloc-ordinary.ld +#target: [check_shared_lib_support] +#error: \A[^\n]*: in function `foo':\n +#error: \(\.text\+0x0\): relocation R_(MICRO|)MIPS_HIGHEST against `a local symbol' cannot be used when making a shared object; recompile with -fPIC\n +#error: \(\.text\+0x4\): relocation R_(MICRO|)MIPS_HIGHER against `a local symbol' cannot be used when making a shared object; recompile with -fPIC\n +#error: \(\.text\+0x8\): relocation R_(MICRO|)MIPS_HIGHEST against `bar' cannot be used when making a shared object; recompile with -fPIC\n +#error: \(\.text\+0xc\): relocation R_(MICRO|)MIPS_HIGHER against `bar' cannot be used when making a shared object; recompile with -fPIC\Z |