Home | History | Annotate | Download | only in ld-cris
      1 #source: dso-1.s
      2 #source: dsov32-3.s
      3 #as: --pic --no-underscore --march=v32 --em=criself
      4 #ld: --shared -m crislinux -z nocombreloc --enable-new-dtags
      5 #readelf: -d -r
      6 #warning: relocation R_CRIS_32_PCREL should not be used in a shared object; recompile with -fPIC
      7 
      8 # Check that a TEXTREL reloc is correctly generated for PCREL
      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.
     14 
     15 Dynamic section at offset 0x[0-9a-f][0-9a-f][0-9a-f] contains 11 entries:
     16   Tag[ 	]+Type[ 	]+Name/Value
     17  0x0+4 \(HASH\)[ 	]+0x94
     18  0x0+5 \(STRTAB\)[ 	]+0x[12][0-9a-f][0-9a-f]
     19  0x0+6 \(SYMTAB\)[ 	]+0x[0-9a-f][0-9a-f]
     20  0x0+a \(STRSZ\)[ 	]+38 \(bytes\)
     21  0x0+b \(SYMENT\)[ 	]+16 \(bytes\)
     22  0x0+7 \(RELA\)[ 	]+0x[12][0-9a-f][0-9a-f]
     23  0x0+8 \(RELASZ\)[ 	]+12 \(bytes\)
     24  0x0+9 \(RELAENT\)[ 	]+12 \(bytes\)
     25  0x0+16 \(TEXTREL\)[ 	]+0x0
     26  0x0+1e \(FLAGS\)[ 	]+TEXTREL
     27  0x0+ \(NULL\)[ 	]+0x0
     28 
     29 Relocation section '\.rela\.text' at offset 0x[12][0-9a-f][0-9a-f] contains 1 entries:
     30  Offset[ 	]+Info[ 	]+Type[ 	]+Sym\.Value  Sym\. Name \+ Addend
     31 0+[12][0-9a-f][0-9a-f]  0+[0-9a-f]06 R_CRIS_32_PCREL[ 	]+0+[0-f]+[ 	]+dsofn \+ 6
     32