[PATCH] gold: --trace: Print to stdout instead of stderr
Fangrui Song
maskray@google.com
Sun Jun 14 18:13:10 GMT 2020
GNU ld uses stdout.
gold/
* object.cc (Input_objects::add_object): Use puts.
---
gold/object.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gold/object.cc b/gold/object.cc
index c486a2011d..799c71007f 100644
--- a/gold/object.cc
+++ b/gold/object.cc
@@ -3191,7 +3191,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());
+ puts(obj->name().c_str());
if (!obj->is_dynamic())
this->relobj_list_.push_back(static_cast<Relobj*>(obj));
--
2.27.0.290.gba653c62da-goog
More information about the Binutils
mailing list