This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: please prepend "warning: " to messages emitted because of .gnu.warning sections
- From: Loren James Rittle <rittle at latour dot rsch dot comm dot mot dot com>
- To: binutils at sources dot redhat dot com
- Date: Fri, 1 Aug 2003 15:15:34 -0500 (CDT)
- Subject: Re: please prepend "warning: " to messages emitted because of .gnu.warning sections
>> ought to be responsible for prepending "warning: " to messages emitted
> You mean something like this ?
FYI, FreeBSD src already formats the text:
__warn_references(mktemp,
"warning: mktemp() possibly used unsafely; consider using mkstemp()");
where __warn_references expands to use .gnu.warning.SYMBOL on ELF. If
this change goes into a binutils release then the OS headers would
have to figure out when to add the "warning: " based on an unknown
linker version which will eventually be used (i.e. impossible) to
avoid getting: "warning: warning: [text...]"
Regards,
Loren