aboutsummaryrefslogtreecommitdiff
path: root/gold/object.cc
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@gmail.com>2021-03-19 18:41:12 -0700
committerCary Coutant <ccoutant@gmail.com>2021-03-19 18:41:12 -0700
commit35891b4775d860b6fad15765bbf85be2b8101419 (patch)
tree35e314ccd363655ad4822265aa5bf4a169623a0e /gold/object.cc
parentb218a839358197c1b62200481dc14eb3c8a9a38f (diff)
downloadgdb-35891b4775d860b6fad15765bbf85be2b8101419.zip
gdb-35891b4775d860b6fad15765bbf85be2b8101419.tar.gz
gdb-35891b4775d860b6fad15765bbf85be2b8101419.tar.bz2
Use stdout when printing object file names for -t option.
gold/ PR gold/27615 * errors.cc (Errors::trace): New method. (gold_trace): New function. * errors.h (Errors::trace): New method. * gold.h (gold_trace): New function. * object.cc (Input_objects::add_object): Use gold_trace to print object file names.
Diffstat (limited to 'gold/object.cc')
-rw-r--r--gold/object.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/object.cc b/gold/object.cc
index 5fa6487..45cf30d 100644
--- a/gold/object.cc
+++ b/gold/object.cc
@@ -3199,7 +3199,7 @@ Input_objects::add_object(Object* obj)
{
// Print the filename if the -t/--trace option is selected.
if (parameters->options().trace())
- gold_info("%s", obj->name().c_str());
+ gold_trace("%s", obj->name().c_str());
if (!obj->is_dynamic())
this->relobj_list_.push_back(static_cast<Relobj*>(obj));