Add a testcase for PR ld/12356.
[deliverable/binutils-gdb.git] / gold / target.cc
index b129b59fac6278f0ccdeaa21dc184c208fb5efb5..2c0cbbf16d8945ffb4299edc730a65c95358cf4c 100644 (file)
@@ -1,6 +1,6 @@
 // target.cc
 
-// Copyright 2009 Free Software Foundation, Inc.
+// Copyright 2009, 2010 Free Software Foundation, Inc.
 // Written by Doug Kwan <dougkwan@google.com>.
 
 // This file is part of gold.
 // MA 02110-1301, USA.
 
 #include "gold.h"
-#include "target.h"
-#include "dynobj.h"
 #include "elfcpp.h"
+#include "dynobj.h"
+#include "symtab.h"
+#include "output.h"
+#include "target.h"
 
 namespace gold
 {
 
 // Return whether NAME is a local label name.  This is used to implement the
-// --discard-locals options and can be overriden by children classes to
+// --discard-locals options and can be overridden by child classes to
 // implement system-specific behaviour.  The logic here is the same as that
 // in _bfd_elf_is_local_label_name().
 
 bool
-Target::do_is_local_label_name (const char* name) const
+Target::do_is_local_label_name(const char* name) const
 {
   // Normal local symbols start with ``.L''.
   if (name[0] == '.' && name[1] == 'L')
@@ -136,6 +138,22 @@ Target::do_make_elf_object(const std::string& name, Input_file* input_file,
 }
 #endif
 
+Output_section*
+Target::do_make_output_section(const char* name, elfcpp::Elf_Word type,
+                              elfcpp::Elf_Xword flags)
+{
+  return new Output_section(name, type, flags);
+}
+
+// Default for whether a reloc is a call to a non-split function is
+// whether the symbol is a function.
+
+bool
+Target::do_is_call_to_non_split(const Symbol* sym, unsigned int) const
+{
+  return sym->type() == elfcpp::STT_FUNC;
+}
+
 // Default conversion for -fsplit-stack is to give an error.
 
 void
This page took 0.023879 seconds and 4 git commands to generate.