[PATCH] D80390: [WIP][mips] Support 64-bit relative relocations

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat May 30 09:31:22 PDT 2020


MaskRay added a comment.

In D80390#2064895 <https://reviews.llvm.org/D80390#2064895>, @joewholden wrote:

> Ok so, just stumbled upon one issue but I'm not yet sure where the problem lies given how bad mips support is in Go:
>
> ld: error: section type mismatch for .debug_line
>
> >>> /tmp/go-link-985122218/000010.o:(.debug_line): SHT_MIPS_DWARF
> >>>  output section .debug_line: SHT_PROGBITS
>
> I'm still testing though, so I'll see what I uncover...


According to https://github.com/llvm/llvm-project/blob/master/llvm/lib/MC/MCObjectFileInfo.cpp#L404 , .debug_line on MIPS should use `SHT_MIPS_DWARF` (different from all other targets). Go produced assembly should do the same. LLD has such a rigorous check for section type compatibility.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D80390/new/

https://reviews.llvm.org/D80390





More information about the llvm-commits mailing list