linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] modpost: skip section mismatch warnings on ELF local symbols by default
@ 2018-10-20 13:19 Paul Walmsley
  2018-10-20 13:19 ` [PATCH 1/2] modpost: add switch to skip symbol exclusions likely to generate false positives Paul Walmsley
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Paul Walmsley @ 2018-10-20 13:19 UTC (permalink / raw)
  To: linux-kernel, linux-kbuild
  Cc: Paul Walmsley, Russell King, Jim Wilson, Masahiro Yamada, Michal Marek

modpost: skip section mismatch warnings on ELF local symbols by default

modpost, by default, reports section mismatch warnings on ELF local
symbols.  This caused false positive warnings to be reported for a
local symbol name that would otherwise be elided by matching against a
name pattern.  This was observed using a RISC-V toolchain that generates
section anchors.

To avoid this noise in the common case, this patch series disables
section mismatch warnings on ELF local symbols by default.  It also
adds a modpost command line switch to re-enable these warnings, since
I wasn't able to convince myself that section mismatch warnings on ELF
local symbols were completely useless; just mostly useless :-)

I'm neither a modpost nor an ELF expert, so careful review of this
series is appreciated.

This modpost series can also be found at:

https://github.com/sifive/riscv-linux/tree/dev/paulw/modpost-elf-local-symbols-v4.19-rc7

The series was tested on a RISC-V build of the SiFive UART serial
driver, at:

https://github.com/sifive/riscv-linux/tree/dev/paulw/serial-v4.19-rc7

Paul Walmsley (2):
  modpost: add switch to skip symbol exclusions likely to generate false
    positives
  modpost: skip ELF local symbols by default during section mismatch
    check

 scripts/mod/modpost.c | 23 +++++++++++++++++++++--
 1 file changed, 21 insertions(+), 2 deletions(-)

Cc: Russell King <linux@armlinux.org.uk>
Cc: Jim Wilson <jimw@sifive.com>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Michal Marek <michal.lkml@markovi.net>
Cc: linux-kbuild@vger.kernel.org
Cc: linux-kernel@vger.kernel.org

-- 
2.19.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-11-15  0:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-20 13:19 [PATCH 0/2] modpost: skip section mismatch warnings on ELF local symbols by default Paul Walmsley
2018-10-20 13:19 ` [PATCH 1/2] modpost: add switch to skip symbol exclusions likely to generate false positives Paul Walmsley
2018-10-20 13:19 ` [PATCH 2/2] modpost: skip ELF local symbols by default during section mismatch check Paul Walmsley
2018-11-13  2:19   ` Masahiro Yamada
2018-11-14 19:30     ` Paul Walmsley
2018-10-20 14:08 ` [PATCH 0/2] modpost: skip section mismatch warnings on ELF local symbols by default Sam Ravnborg
2018-11-15  0:48   ` Paul Walmsley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).