Commit | Line | Data |
---|---|---|
1f02b94b HPN |
1 | #source: dso-1.s |
2 | #source: dsov32-3.s | |
3 | #as: --pic --no-underscore --march=v32 | |
4 | #ld: --shared -m crislinux | |
5 | #readelf: -d -r | |
6 | #error: relocation R_CRIS_32_PCREL should not be used in a shared object; recompile with -fPIC | |
7 | ||
8 | # FIXME: Have a textrel-enabling linker option. Split out the | |
9 | # expected readelf output into a separate test using that option. | |
10 | # Check that a TEXTREL reloc is correctly generated for PCREL | |
11 | # relocations. | |
12 | ||
13 | Dynamic segment at offset 0x240 contains 10 entries: | |
14 | Tag[ ]+Type[ ]+Name/Value | |
15 | 0x0+4 \(HASH\)[ ]+0x94 | |
16 | 0x0+5 \(STRTAB\)[ ]+0x1e8 | |
17 | 0x0+6 \(SYMTAB\)[ ]+0xe8 | |
18 | 0x0+a \(STRSZ\)[ ]+47 \(bytes\) | |
19 | 0x0+b \(SYMENT\)[ ]+16 \(bytes\) | |
20 | 0x0+7 \(RELA\)[ ]+0x218 | |
21 | 0x0+8 \(RELASZ\)[ ]+12 \(bytes\) | |
22 | 0x0+9 \(RELAENT\)[ ]+12 \(bytes\) | |
23 | 0x0+16 \(TEXTREL\)[ ]+0x0 | |
24 | 0x0+ \(NULL\)[ ]+0x0 | |
25 | ||
26 | Relocation section '\.rela\.text' at offset 0x218 contains 1 entries: | |
27 | Offset[ ]+Info[ ]+Type[ ]+Sym\.Value Sym\. Name \+ Addend | |
28 | 0+22a 0+f06 R_CRIS_32_PCREL[ ]+0+224[ ]+dsofn \+ 6 |