please prepend "warning: " to messages emitted because of .gnu.warning sections

Loren James Rittle rittle@latour.rsch.comm.mot.com
Fri Aug 1 20:15:00 GMT 2003


>> 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



More information about the Binutils mailing list