add .gnu.warning.SYMBOL support to ld.lld(1) to display the warnings in
authorrobert <robert@openbsd.org>
Thu, 17 Nov 2022 12:24:02 +0000 (12:24 +0000)
committerrobert <robert@openbsd.org>
Thu, 17 Nov 2022 12:24:02 +0000 (12:24 +0000)
commit7c5ea75431f158dfca56453463ea4dd564ac8eac
tree72457b8ebd7f2a6c7313afbfc235c4810422019b
parent4ccb2e39af644be207348b74219ac2e32a1bb327
add .gnu.warning.SYMBOL support to ld.lld(1) to display the warnings in
these sections like ld.bfd(1)

e.g:
add.c(add.o:(add)): warning: sprintf() is often misused, please use snprintf()
add.c(add.o:(add)): warning: strcpy() is almost always misused, please use strlcpy()
add.c(add.o:(add)): warning: strcat() is almost always misused, please use strlcat()

ok deraadt@
gnu/llvm/lld/ELF/InputFiles.cpp
gnu/llvm/lld/ELF/InputFiles.h
gnu/llvm/lld/ELF/Relocations.cpp
gnu/llvm/lld/ELF/SymbolTable.cpp
gnu/llvm/lld/ELF/Symbols.h