GAS/MIPS: Add mips16-e-irix.d testcase
[binutils-gdb.git] / gas / testsuite / gas / mips / mips16-e-irix.d
1 #objdump: -rst --special-syms -mips16
2 #name: MIPS16 reloc
3 #as: -32 -mips16
4 #source: mips16-e.s
5
6 # The Irix 5 and 6 assemblers set the type of any common symbol and
7 # any undefined non-function symbol to STT_OBJECT, 'g1' here.
8 # See `mips_frob_symbol` in tc-mips.c.
9
10 # Check MIPS16 reloc processing
11
12 .*: +file format elf32-bigmips
13
14 SYMBOL TABLE:
15 0+0000000 l d \.text 0+0000000 \.text
16 0+0000000 l d \.data 0+0000000 \.data
17 0+0000000 l d \.bss 0+0000000 \.bss
18 0+0000000 l d foo 0+0000000 foo
19 0+0000000 l d \.reginfo 0+0000000 \.reginfo
20 0+0000000 l d \.MIPS\.abiflags 0+0000000 \.MIPS\.abiflags
21 0+0000000 l d \.(mdebug|pdr) 0+0000000 \.mdebug|\.pdr
22 0+0000000 l d \.gnu\.attributes 0+0000000 \.gnu\.attributes
23 0+0000002 l \.text 0+0000000 0xf0 l1
24 0+0000004 l \.text 0+0000000 0xf0 \.L11
25 0+0000000 O \*UND\* 0+0000000 g1
26
27
28 RELOCATION RECORDS FOR \[foo\]:
29 OFFSET +TYPE +VALUE
30 0+0000000 R_MIPS_32 l1
31 0+0000004 R_MIPS_32 l1
32 0+0000008 R_MIPS_32 \.L1.*1
33 0+000000c R_MIPS_32 \.L1.*1
34 0+0000010 R_MIPS_32 g1
35 0+0000014 R_MIPS_32 g1
36
37
38 Contents of section \.text:
39 0000 65006500 65006500 65006500 65006500 .*
40 Contents of section \.reginfo:
41 0000 00010000 00000000 00000000 00000000 .*
42 0010 00000000 00000000 .*
43 Contents of section \.MIPS\.abiflags:
44 .*
45 .*
46 Contents of section foo:
47 0000 00000000 00000008 00000000 00000003 .*
48 0010 00000000 00000008 00000000 00000000 .*
49 Contents of section \.gnu\.attributes:
50 .*