[PATCH] D24692: Mark ELF sections whose name start with .note as note

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 16 17:47:47 PDT 2016


ruiu added a subscriber: ruiu.

================
Comment at: lib/CodeGen/TargetLoweringObjectFileImpl.cpp:154
@@ -153,1 +153,3 @@
 static unsigned getELFSectionType(StringRef Name, SectionKind K) {
+  if (Name.startswith(".note"))
+    return ELF::SHT_NOTE;
----------------
Shouldn't this be `Name == ".note" || Name.startswith(".note.")`?


Repository:
  rL LLVM

https://reviews.llvm.org/D24692





More information about the llvm-commits mailing list