[PATCH] D138135: [WIP][ELF] Support LoongArch

WÁNG Xuěruì via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 16 07:24:10 PST 2022


xen0n created this revision.
xen0n added reviewers: MaskRay, xry111, SixWeining, wangleiat, gonglingqin.
Herald added subscribers: StephenFan, s.egerton, simoncook, arichardson, emaste.
Herald added a project: All.
xen0n requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead.
Herald added a project: LLVM.

Current status: confirmed working with things like binutils and QEMU;
can link LLVM but the produced llc/opt/etc. segfaults when doing
anything non-trivial.

Posting this for comments nevertheless, as I'm new to linker
development, and wanted to avoid making big mistakes early on (although
this part is debatable, as this is pretty complete by now).


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D138135

Files:
  lld/ELF/Arch/LoongArch.cpp
  lld/ELF/CMakeLists.txt
  lld/ELF/Driver.cpp
  lld/ELF/InputSection.cpp
  lld/ELF/Relocations.cpp
  lld/ELF/Relocations.h
  lld/ELF/ScriptParser.cpp
  lld/ELF/Symbols.h
  lld/ELF/Target.cpp
  lld/ELF/Target.h
  lld/test/ELF/loongarch-elf-flags.s
  lld/test/ELF/loongarch-relocs-abs64.s
  lld/test/lit.cfg.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138135.475821.patch
Type: text/x-patch
Size: 32262 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221116/5fa66233/attachment.bin>


More information about the llvm-commits mailing list