When disabling target async, remove all target event sources from the event loop
[deliverable/binutils-gdb.git] / gold / target.cc
index 091f9d34cd5521ee08ef1e17722570deba5122b3..f558c5e8739e46ead3e9264f32e17f1699ff9951 100644 (file)
@@ -1,6 +1,6 @@
 // target.cc -- target support for gold.
 
-// Copyright 2009, 2010, 2011 Free Software Foundation, Inc.
+// Copyright (C) 2009-2015 Free Software Foundation, Inc.
 // Written by Doug Kwan <dougkwan@google.com>.
 
 // This file is part of gold.
@@ -203,6 +203,15 @@ Target::set_view_to_nop(unsigned char* view, section_size_type view_size,
     }
 }
 
+// Return address and size to plug into eh_frame FDEs associated with a PLT.
+void
+Target::do_plt_fde_location(const Output_data* plt, unsigned char*,
+                           uint64_t* address, off_t* len) const
+{
+  *address = plt->address();
+  *len = plt->data_size();
+}
+
 // Class Sized_target.
 
 // Set the EI_OSABI field of the ELF header if requested.
@@ -210,20 +219,20 @@ Target::set_view_to_nop(unsigned char* view, section_size_type view_size,
 template<int size, bool big_endian>
 void
 Sized_target<size, big_endian>::do_adjust_elf_header(unsigned char* view,
-                                                    int len) const
+                                                    int len)
 {
   elfcpp::ELFOSABI osabi = this->osabi();
   if (osabi != elfcpp::ELFOSABI_NONE)
     {
       gold_assert(len == elfcpp::Elf_sizes<size>::ehdr_size);
 
-      elfcpp::Ehdr<size, false> ehdr(view);
+      elfcpp::Ehdr<size, big_endian> ehdr(view);
       unsigned char e_ident[elfcpp::EI_NIDENT];
       memcpy(e_ident, ehdr.get_e_ident(), elfcpp::EI_NIDENT);
 
       e_ident[elfcpp::EI_OSABI] = osabi;
 
-      elfcpp::Ehdr_write<size, false> oehdr(view);
+      elfcpp::Ehdr_write<size, big_endian> oehdr(view);
       oehdr.put_e_ident(e_ident);
     }
 }
This page took 0.024324 seconds and 4 git commands to generate.