diff options
author | Cary Coutant <ccoutant@gmail.com> | 2021-03-19 18:41:12 -0700 |
---|---|---|
committer | Cary Coutant <ccoutant@gmail.com> | 2021-03-19 18:41:12 -0700 |
commit | 35891b4775d860b6fad15765bbf85be2b8101419 (patch) | |
tree | 35e314ccd363655ad4822265aa5bf4a169623a0e /gold/gold.h | |
parent | b218a839358197c1b62200481dc14eb3c8a9a38f (diff) | |
download | binutils-35891b4775d860b6fad15765bbf85be2b8101419.zip binutils-35891b4775d860b6fad15765bbf85be2b8101419.tar.gz binutils-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/gold.h')
-rw-r--r-- | gold/gold.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gold/gold.h b/gold/gold.h index aa00255..f27542d 100644 --- a/gold/gold.h +++ b/gold/gold.h @@ -99,6 +99,10 @@ gold_warning(const char* msg, ...) ATTRIBUTE_PRINTF_1; extern void gold_info(const char* msg, ...) ATTRIBUTE_PRINTF_1; +// This function is called to print a trace message. +extern void +gold_trace(const char* msg, ...) ATTRIBUTE_PRINTF_1; + // This function is called to emit an error message and then // immediately exit with fallback status (e.g., when // --incremental-update fails and the link needs to be restarted |