[PATCH] gold: --trace: Print to stdout instead of stderr

Fangrui Song maskray@google.com
Sun Aug 2 20:56:01 GMT 2020


On 2020-07-19, Fangrui Song wrote:
>On 2020-06-14, Fangrui Song wrote:
>>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
>>
>
>PING..

PING^2...


More information about the Binutils mailing list