From: anton Date: Mon, 5 Aug 2024 06:11:42 +0000 (+0000) Subject: Allow our linker warnings regarding misuse of libc functions to be X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=2df0ffa88b9c00aeb2f69bcbabf51166561a1214;p=openbsd Allow our linker warnings regarding misuse of libc functions to be elevated to errors using the -Wl,--fatal-warnings option. ok robert@ --- diff --git a/gnu/llvm/lld/ELF/Relocations.cpp b/gnu/llvm/lld/ELF/Relocations.cpp index 9bdbad2d48a..255fb28eb81 100644 --- a/gnu/llvm/lld/ELF/Relocations.cpp +++ b/gnu/llvm/lld/ELF/Relocations.cpp @@ -798,8 +798,8 @@ static void reportGNUWarning(Symbol &sym, InputSectionBase &sec, // report first occurance only sym.gwarn = false; if (!gnuWarning.empty()) - message(sec.getSrcMsg(sym, offset) + "(" + sec.getObjMsg(offset) + - "): warning: " + gnuWarning); + warn(sec.getSrcMsg(sym, offset) + "(" + sec.getObjMsg(offset) + + "): warning: " + gnuWarning); } }