Add 2 tests for PR ld/11812.
[binutils.git] / ld / testsuite / ld-cris / locref2.d
blob735b10ec4fffd9309f7d5adb4d6be9e67a0dc77c
1 #as: --no-underscore --pic --em=criself
2 #source: gotrel1.s
3 #source: locref2.s
4 #ld: -m crislinux
5 #objdump: -dt
7 # Referencing an undefined weak (non-hidden) symbol with a local-only
8 # PIC relocation is ok when building an executable.
10 .*: file format elf32-cris
12 SYMBOL TABLE:
13 #...
14 0+82088 l O \.got 0+ _GLOBAL_OFFSET_TABLE_
15 0+ w \*UND\* 0+ expfn
16 0+ w \*UND\* 0+ expobj
17 #...
18 Disassembly of section \.text:
19 #...
20 0+8007c <y>:
21 8007c: 6fae 78df f7ff .*
22 80082: 6fbe 78df f7ff .*