[PATCH] D101336: [WIP][LLD][BPF] Add bpf support

Yonghong Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 26 17:38:45 PDT 2021


yonghong-song created this revision.
Herald added subscribers: arichardson, mgorny, emaste.
Herald added a reviewer: MaskRay.
yonghong-song requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This is a work-in-progress to add bpf lld support.
The work is currently paused as we already had 
some bpftool support for similar functionality.
Posted here so I won't lose this work.

Typical command line:

  clang -target bpf -g -O2 -c t1.c t2.c
  ld.lld -relocatable t1.o t2.o -o final.o


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D101336

Files:
  lld/ELF/Arch/BPF.cpp
  lld/ELF/CMakeLists.txt
  lld/ELF/InputFiles.cpp
  lld/ELF/Target.cpp
  lld/ELF/Target.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101336.340699.patch
Type: text/x-patch
Size: 3070 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210427/9e720c6e/attachment.bin>


More information about the llvm-commits mailing list