libiberty: documentation markup and order fixes.
[binutils-gdb.git] / gold / target.cc
index e774f63cea338d5cb99d870b9b513a549b7b37c5..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.
@@ -31,12 +31,12 @@ 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')
@@ -145,14 +145,13 @@ Target::do_make_output_section(const char* name, elfcpp::Elf_Word type,
   return new Output_section(name, type, flags);
 }
 
-// Default for whether a reloc is a call to a non-split function is if
-// the symbol is a function not defined by the ABI.
+// 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
-         && !this->is_defined_by_abi(sym));
+  return sym->type() == elfcpp::STT_FUNC;
 }
 
 // Default conversion for -fsplit-stack is to give an error.