if (name_end == NULL
|| name_end - hdr->ar_name >= static_cast<int>(sizeof hdr->ar_name))
{
- gold_error(_("%s: malformed archive header name at %zu\n"),
+ gold_error(_("%s: malformed archive header name at %zu"),
this->name().c_str(), static_cast<size_t>(off));
return this->input_file_->file().filesize() - off;
}
name = dirpath.find(n1, n2, &this->is_in_sysroot_);
if (name.empty())
{
- gold_error(_("cannot find -l%s\n"),
+ gold_error(_("cannot find -l%s"),
this->input_argument_->name());
return false;
}
&this->is_in_sysroot_);
if (name.empty())
{
- gold_error(_("cannot find %s\n"),
+ gold_error(_("cannot find %s"),
this->input_argument_->name());
return false;
}
// Now that we've figured out where the file lives, try to open it.
if (!this->file_.open(name))
{
- gold_error(_("cannot open %s: %s\n"),
+ gold_error(_("cannot open %s: %s"),
name.c_str(), strerror(errno));
return false;
}
case elfcpp::R_386_TLS_DTPOFF32:
case elfcpp::R_386_TLS_TPOFF32:
case elfcpp::R_386_TLS_DESC:
- gold_error(_("%s: unexpected reloc %u in object file\n"),
+ gold_error(_("%s: unexpected reloc %u in object file"),
object->name().c_str(), r_type);
break;
Output_file::close()
{
if (::munmap(this->base_, this->file_size_) < 0)
- gold_error(_("%s: munmap: %s\n"), this->name_, strerror(errno));
+ gold_error(_("%s: munmap: %s"), this->name_, strerror(errno));
this->base_ = NULL;
if (::close(this->o_) < 0)
{
Parser_closure* closure = static_cast<Parser_closure*>(closurev);
- gold_error(_("%s: %s\n"), closure->filename(), message);
+ gold_error(_("%s: %s"), closure->filename(), message);
}
// Called by the bison parser to add a file to the link.
if (this->skip_call_tls_get_addr_)
{
// FIXME: This needs to specify the location somehow.
- gold_error(_("missing expected TLS relocation\n"));
+ gold_error(_("missing expected TLS relocation"));
}
}