<div dir="ltr"><div>Simon,</div><div><br></div><div>I have a question for you. I couldn't figure out how to fix the following errors because I don't understand the exact formula how these constants are calculated. Could you apply this and take a look at it for me?</div><div><br></div><div><br></div><div>[1/1] Running lld test suite</div><div>FAIL: lld :: ELF/mips-n32-rels.s (532 of 931)</div><div>******************** TEST 'lld :: ELF/mips-n32-rels.s' FAILED ********************</div><div>Script:</div><div>--</div><div>/ssd/build/./bin/ld.lld --full-shutdown /ssd/llvm/tools/lld/test/ELF/Inputs/mips-n32-rels.o -o /ssd/build/tools/lld/test/ELF/Output/mips-n32-rels.s.tmp.exe</div><div>/ssd/build/./bin/llvm-objdump -t -d -s /ssd/build/tools/lld/test/ELF/Output/mips-n32-rels.s.tmp.exe | /ssd/build/./bin/FileCheck /ssd/llvm/tools/lld/test/ELF/mips-n32-rels.s</div><div>/ssd/build/./bin/llvm-readobj -h /ssd/build/tools/lld/test/ELF/Output/mips-n32-rels.s.tmp.exe | /ssd/build/./bin/FileCheck -check-prefix=ELF /ssd/llvm/tools/lld/test/ELF/mips-n32-rels.s</div><div>--</div><div>Exit Code: 1</div><div><br></div><div>Command Output (stderr):</div><div>--</div><div>/ssd/llvm/tools/lld/test/ELF/mips-n32-rels.s:41:15: error: expected string not found in input</div><div># CHECK-NEXT: 10128 00020004</div><div>              ^</div><div><stdin>:16:2: note: scanning from here</div><div> 10110 00020004 ....</div><div> ^</div><div><br></div><div>--</div><div><br></div><div>********************</div><div>FAIL: lld :: ELF/mips-gprel32-relocs-gp0.s (548 of 931)</div><div>******************** TEST 'lld :: ELF/mips-gprel32-relocs-gp0.s' FAILED ********************</div><div>Script:</div><div>--</div><div>/ssd/build/./bin/llvm-mc -filetype=obj -triple=mips-unknown-linux /ssd/llvm/tools/lld/test/ELF/mips-gprel32-relocs-gp0.s -o /ssd/build/tools/lld/test/ELF/Output/mips-gprel32-relocs-gp0.s.tmp.o</div><div>/ssd/build/./bin/ld.lld --full-shutdown -r -o /ssd/build/tools/lld/test/ELF/Output/mips-gprel32-relocs-gp0.s.tmp-rel.o /ssd/build/tools/lld/test/ELF/Output/mips-gprel32-relocs-gp0.s.tmp.o</div><div>/ssd/build/./bin/llvm-readobj -mips-reginfo /ssd/build/tools/lld/test/ELF/Output/mips-gprel32-relocs-gp0.s.tmp-rel.o | /ssd/build/./bin/FileCheck --check-prefix=REL /ssd/llvm/tools/lld/test/ELF/mips-gprel32-relocs-gp0.s</div><div>/ssd/build/./bin/ld.lld --full-shutdown -shared -o /ssd/build/tools/lld/test/ELF/Output/<a href="http://mips-gprel32-relocs-gp0.s.tmp.so">mips-gprel32-relocs-gp0.s.tmp.so</a> /ssd/llvm/tools/lld/test/ELF/Inputs/mips-gp0-non-zero.o</div><div>/ssd/build/./bin/llvm-readobj -mips-reginfo /ssd/build/tools/lld/test/ELF/Output/<a href="http://mips-gprel32-relocs-gp0.s.tmp.so">mips-gprel32-relocs-gp0.s.tmp.so</a> | /ssd/build/./bin/FileCheck --check-prefix=DSO /ssd/llvm/tools/lld/test/ELF/mips-gprel32-relocs-gp0.s</div><div>/ssd/build/./bin/llvm-objdump -s -t /ssd/build/tools/lld/test/ELF/Output/<a href="http://mips-gprel32-relocs-gp0.s.tmp.so">mips-gprel32-relocs-gp0.s.tmp.so</a> | /ssd/build/./bin/FileCheck --check-prefix=DUMP /ssd/llvm/tools/lld/test/ELF/mips-gprel32-relocs-gp0.s</div><div>/ssd/build/./bin/not /ssd/build/./bin/ld.lld --full-shutdown -r -o /ssd/build/tools/lld/test/ELF/Output/mips-gprel32-relocs-gp0.s.tmp-rel.o /ssd/llvm/tools/lld/test/ELF/Inputs/mips-gp0-non-zero.o 2>&1    | /ssd/build/./bin/FileCheck --check-prefix=ERR /ssd/llvm/tools/lld/test/ELF/mips-gprel32-relocs-gp0.s</div><div>--</div><div>Exit Code: 1</div><div><br></div><div>Command Output (stderr):</div><div>--</div><div>/ssd/llvm/tools/lld/test/ELF/mips-gprel32-relocs-gp0.s:25:9: error: expected string not found in input</div><div># DUMP: 0114 ffff0004 ffff0008</div><div>        ^</div><div><stdin>:5:2: note: scanning from here</div><div> 0114 fffe8014 fffe8018 ........</div><div> ^</div><div><br></div><div>--</div><div><br></div><div>********************</div><div>Testing Time: 3.90s</div><div>********************</div><div>Failing Tests (2):</div><div>    lld :: ELF/mips-gprel32-relocs-gp0.s</div><div>    lld :: ELF/mips-n32-rels.s</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Nov 5, 2016 at 5:38 PM, Rui Ueyama <span dir="ltr"><<a href="mailto:ruiu@google.com" target="_blank">ruiu@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">ruiu created this revision.<br>
ruiu added a reviewer: atanasyan.<br>
ruiu added a subscriber: llvm-commits.<br>
Herald added a subscriber: sdardis.<br>
<br>
Previously, we have an input section and an output section<br>
for MIPS .reginfo. This patch reorganizes the code structure.<br>
Now we have only one class for .reginfo, which is MipsReginfoSection.<br>
MipsReginfoSection is a synthetic input section.<br>
<br>
.reginfo sections are handled as regular sections until the<br>
control reaches Writer. Writer then aggregates all sections whose<br>
type is SHT_MIPS_REGINFO to create a single synthesized input section.<br>
The synthesized section is then processed normally as if it came<br>
from an input file.<br>
<br>
<br>
<a href="https://reviews.llvm.org/D26327" rel="noreferrer" target="_blank">https://reviews.llvm.org/<wbr>D26327</a><br>
<br>
Files:<br>
  ELF/InputFiles.cpp<br>
  ELF/InputFiles.h<br>
  ELF/InputSection.cpp<br>
  ELF/InputSection.h<br>
  ELF/OutputSections.cpp<br>
  ELF/OutputSections.h<br>
  ELF/SyntheticSections.cpp<br>
  ELF/SyntheticSections.h<br>
  ELF/Writer.cpp<br>
  test/ELF/basic-mips.s<br>
  test/ELF/invalid/mips-<wbr>multiple-reginfo.test<br>
  test/ELF/mips-64.s<br>
  test/ELF/mips-tls-64.s<br>
<br>
</blockquote></div><br></div>