This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]