MIPS/LD: Fix memory fault linking non-PIC object in to shared library
[external/binutils.git] / ld / testsuite / ld-mips-elf / pic-reloc-6.d
1 #name: MIPS PIC relocation 6 (MIPS16)
2 #ld: -shared -T pic-reloc-ordinary.ld
3 #target: [check_shared_lib_support]
4 #as: -mips16
5 #error: \A[^\n]*: in function `foo':\n
6 #error:   \(\.text\+0x0\): relocation R_MIPS16_HI16 against `a local symbol' cannot be used when making a shared object; recompile with -fPIC\n
7 #error:   \(\.text\+0x8\): relocation R_MIPS16_HI16 against `bar' cannot be used when making a shared object; recompile with -fPIC\Z