// 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.
{
// 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')
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.