[PATCH] D87219: [ELF] Merge .openbsd.randomdata.* sections into a single .openbsd.randomdata section when linking

Brad Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 6 20:45:43 PDT 2020


brad created this revision.
brad added reviewers: MaskRay, espindola, jrtc27.
brad added a project: LLVM.
Herald added subscribers: krytarowski, arichardson, emaste.
brad requested review of this revision.

Merge .openbsd.randomdata.* sections into a single .openbsd.randomdata section when linking.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D87219

Files:
  lld/ELF/Writer.cpp


Index: lld/ELF/Writer.cpp
===================================================================
--- lld/ELF/Writer.cpp
+++ lld/ELF/Writer.cpp
@@ -140,7 +140,8 @@
   for (StringRef v :
        {".text.", ".rodata.", ".data.rel.ro.", ".data.", ".bss.rel.ro.",
         ".bss.", ".init_array.", ".fini_array.", ".ctors.", ".dtors.", ".tbss.",
-        ".gcc_except_table.", ".tdata.", ".ARM.exidx.", ".ARM.extab."})
+        ".gcc_except_table.", ".tdata.", ".ARM.exidx.", ".ARM.extab.",
+        ".openbsd.randomdata."})
     if (isSectionPrefix(v, s->name))
       return v.drop_back();
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87219.290172.patch
Type: text/x-patch
Size: 586 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200907/05718ae8/attachment.bin>


More information about the llvm-commits mailing list