[PATCH] D63182: [ELF][PPC64] Don't report "relocation refers to a discarded section" for .toc

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 11 23:54:20 PDT 2019


ruiu added inline comments.


================
Comment at: ELF/Relocations.cpp:721
 
+  // clang/gcc PPC64 may emit a .rela.toc which references a switch table in a
+  // discarded .rodata/.text section. The .toc and the .rela.toc are incorrectly
----------------
Hmm, has the compiler bug fixed? At least someone needs to fix this so that the compilers don't emit wrong code.


Repository:
  rLLD LLVM Linker

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

https://reviews.llvm.org/D63182





More information about the llvm-commits mailing list