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

Cary Coutant ccoutant@gmail.com
Sat Mar 20 01:48:13 GMT 2021


Thanks for the patch, but I elected to add a gold_trace() function and
an Errors::trace() method, for more generality, and consistency with
other gold output.

https://sourceware.org/pipermail/binutils/2021-March/115823.html

-cary

On Fri, Mar 19, 2021 at 5:18 PM Fāng-ruì Sòng <maskray@google.com> wrote:
>
> On Sun, Aug 2, 2020 at 1:56 PM Fangrui Song <maskray@google.com> wrote:
> >
> > 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...
>
> PING^3...


More information about the Binutils mailing list