RISC-V: Only relax to C.LUI when imm != 0 and rd != 0/2
[deliverable/binutils-gdb.git] / ld / testsuite / ld-cris / libdso-13.d
CommitLineData
1f02b94b
HPN
1#source: dso-1.s
2#source: dsov32-3.s
9a6351f1 3#as: --pic --no-underscore --march=v32 --em=criself
c7dffc39 4#ld: --shared -m crislinux -z nocombreloc --enable-new-dtags --hash-style=sysv
1f02b94b 5#readelf: -d -r
a779d8fa 6#warning: relocation R_CRIS_32_PCREL should not be used in a shared object; recompile with -fPIC
1f02b94b 7
1f02b94b 8# Check that a TEXTREL reloc is correctly generated for PCREL
a779d8fa
HPN
9# relocations against global symbols.
10# FIXME: Have a textrel-enabling(-disabling) linker option.
11# (Warning always generated unless [other option] warnings are
12# generally disabled.) Split out the expected readelf output
13# into a separate test using that option.
1f02b94b 14
0d358fd5 15Dynamic section at offset 0x[0-9a-f][0-9a-f][0-9a-f] contains 11 entries:
1f02b94b
HPN
16 Tag[ ]+Type[ ]+Name/Value
17 0x0+4 \(HASH\)[ ]+0x94
a779d8fa
HPN
18 0x0+5 \(STRTAB\)[ ]+0x[12][0-9a-f][0-9a-f]
19 0x0+6 \(SYMTAB\)[ ]+0x[0-9a-f][0-9a-f]
85167a84 20 0x0+a \(STRSZ\)[ ]+38 \(bytes\)
1f02b94b 21 0x0+b \(SYMENT\)[ ]+16 \(bytes\)
a779d8fa 22 0x0+7 \(RELA\)[ ]+0x[12][0-9a-f][0-9a-f]
1f02b94b
HPN
23 0x0+8 \(RELASZ\)[ ]+12 \(bytes\)
24 0x0+9 \(RELAENT\)[ ]+12 \(bytes\)
25 0x0+16 \(TEXTREL\)[ ]+0x0
0d358fd5 26 0x0+1e \(FLAGS\)[ ]+TEXTREL
1f02b94b
HPN
27 0x0+ \(NULL\)[ ]+0x0
28
a779d8fa 29Relocation section '\.rela\.text' at offset 0x[12][0-9a-f][0-9a-f] contains 1 entries:
1f02b94b 30 Offset[ ]+Info[ ]+Type[ ]+Sym\.Value Sym\. Name \+ Addend
a779d8fa 310+[12][0-9a-f][0-9a-f] 0+[0-9a-f]06 R_CRIS_32_PCREL[ ]+0+[0-f]+[ ]+dsofn \+ 6
This page took 1.093088 seconds and 4 git commands to generate.