[PATCH] D62840: [ELF] Suppress "STT_SECTION symbol should be defined" on .eh_frame, .debug*, .zdebug* and .gcc_except_table

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 4 06:29:56 PDT 2019


MaskRay updated this revision to Diff 202923.
MaskRay added a comment.

Use two assignments:

  uint32_t SecIdx = cast<Undefined>(Sym).DiscardedSecIdx;
  Elf_Shdr_Impl<ELFT> Sec =
      CHECK(File->getObj().sections(), File)[SecIdx];


Repository:
  rLLD LLVM Linker

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

https://reviews.llvm.org/D62840

Files:
  ELF/InputSection.cpp
  test/ELF/Inputs/comdat-discarded-reloc.s
  test/ELF/comdat-discarded-reloc.s
  test/ELF/invalid-undef-section-symbol.test

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62840.202923.patch
Type: text/x-patch
Size: 4857 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190604/9ae325f3/attachment.bin>


More information about the llvm-commits mailing list