[PATCH] D30279: [ELF] Ignore R_*_NONE relocs when relocating non-alloc sections

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 22 15:00:26 PST 2017


phosek created this revision.
phosek added a project: lld.

We shouldn't report an error for R_*_NONE relocs since we're emitting them when writing relocations to discarded sections.


Repository:
  rL LLVM

https://reviews.llvm.org/D30279

Files:
  ELF/InputSection.cpp
  ELF/Relocations.cpp
  ELF/Relocations.h
  ELF/Target.cpp
  test/ELF/Inputs/relocatable-non-alloc.s
  test/ELF/relocatable-non-alloc.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30279.89431.patch
Type: text/x-patch
Size: 3725 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170222/d081a135/attachment.bin>


More information about the llvm-commits mailing list