From 2df0ffa88b9c00aeb2f69bcbabf51166561a1214 Mon Sep 17 00:00:00 2001 From: anton Date: Mon, 5 Aug 2024 06:11:42 +0000 Subject: [PATCH] Allow our linker warnings regarding misuse of libc functions to be elevated to errors using the -Wl,--fatal-warnings option. ok robert@ --- gnu/llvm/lld/ELF/Relocations.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } } -- 2.20.1