diff lld/MachO/Writer.h @ 207:2e18cbf3894f

LLVM12
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:07:14 +0900
parents 0572611fdcc8
children c4bab56944e8
line wrap: on
line diff
--- a/lld/MachO/Writer.h	Mon May 25 11:55:54 2020 +0900
+++ b/lld/MachO/Writer.h	Tue Jun 08 06:07:14 2021 +0900
@@ -14,6 +14,10 @@
 namespace lld {
 namespace macho {
 
+class OutputSection;
+class InputSection;
+class Symbol;
+
 class LoadCommand {
 public:
   virtual ~LoadCommand() = default;
@@ -21,10 +25,16 @@
   virtual void writeTo(uint8_t *buf) const = 0;
 };
 
-void writeResult();
+template <class LP> void writeResult();
 
 void createSyntheticSections();
 
+// Add bindings for symbols that need weak or non-lazy bindings.
+void addNonLazyBindingEntries(const Symbol *, const InputSection *,
+                              uint64_t offset, int64_t addend = 0);
+
+extern OutputSection *firstTLVDataSection;
+
 } // namespace macho
 } // namespace lld