If we a section with no flags followed by a section with the same name
[deliverable/binutils-gdb.git] / gold / layout.h
index 658eb1e02d098ce477f35f96f5467d7423c0d9d5..1712db95ea4646c4f0fdb754c65b8a9f6fbda220 100644 (file)
@@ -168,6 +168,11 @@ class Layout
   void
   define_section_symbols(Symbol_table*);
 
+  // Create sections for linker scripts.
+  void
+  create_script_sections()
+  { this->script_options_->create_script_sections(this); }
+
   // Define symbols from any linker script.
   void
   define_script_symbols(Symbol_table* symtab)
@@ -314,6 +319,10 @@ class Layout
   void
   get_allocated_sections(Section_list*) const;
 
+  // Make a section for a linker script to hold data.
+  Output_section*
+  make_output_section_for_script(const char* name);
+
   // Make a segment.  This is used by the linker script code.
   Output_segment*
   make_output_segment(elfcpp::Elf_Word type, elfcpp::Elf_Word flags);
@@ -425,8 +434,7 @@ class Layout
                                const Symbol_table*,
                                unsigned int local_symcount,
                                const std::vector<Symbol*>& dynamic_symbols,
-                               const Output_section* dynstr
-                                ACCEPT_SIZE_ENDIAN);
+                               const Output_section* dynstr);
 
   // Return whether to include this section in the link.
   template<int size, bool big_endian>
@@ -461,6 +469,14 @@ class Layout
   make_output_section(const char* name, elfcpp::Elf_Word type,
                      elfcpp::Elf_Xword flags);
 
+  // Attach a section to a segment.
+  void
+  attach_to_segment(Output_section*, elfcpp::Elf_Xword flags);
+
+  // Allocate a previously unallocated output section.
+  void
+  allocate_output_section(Output_section*, elfcpp::Elf_Xword flags);
+
   // Set the final file offsets of all the segments.
   off_t
   set_segment_offsets(const Target*, Output_segment*, unsigned int* pshndx);
This page took 0.023667 seconds and 4 git commands to generate.