On Mon, Oct 25, 2021 at 07:41:51AM -0600, Todd C. Miller wrote:
> On Mon, 25 Oct 2021 12:48:01 +1100, Jonathan Gray wrote:
> 
> > Shouldn't lld instead be changed to show warnings?
> 
> That was my thinking as well.

After discussing the matter with other developers during h2k21, this
is indeed the consensus.

I'm building myself a small tool [1] to display .gnu.warning.* sections
names in ELF objects along with their content, and will check which
other projects use those sections. So far, aside from us, FreeBSD,
NetBSD, and DragonFly all use these sections in their libc, and glibc
does as well.

There is an issue [2] in the LLVM bugtracker about adding support in
LLD to generate linker warnings when encountering these sections,
I will see what can be done on that topic.

[1] https://github.com/fcambus/gwcheck
[2] https://bugs.llvm.org/show_bug.cgi?id=42008

Reply via email to