[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20181020131911.22443-1-paul.walmsley@sifive.com>
Date: Sat, 20 Oct 2018 06:19:10 -0700
From: Paul Walmsley <paul.walmsley@...ive.com>
To: linux-kernel@...r.kernel.org, linux-kbuild@...r.kernel.org
Cc: Paul Walmsley <paul.walmsley@...ive.com>,
Russell King <linux@...linux.org.uk>,
Jim Wilson <jimw@...ive.com>,
Masahiro Yamada <yamada.masahiro@...ionext.com>,
Michal Marek <michal.lkml@...kovi.net>
Subject: [PATCH 0/2] modpost: skip section mismatch warnings on ELF local symbols by default
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@...linux.org.uk>
Cc: Jim Wilson <jimw@...ive.com>
Cc: Masahiro Yamada <yamada.masahiro@...ionext.com>
Cc: Michal Marek <michal.lkml@...kovi.net>
Cc: linux-kbuild@...r.kernel.org
Cc: linux-kernel@...r.kernel.org
--
2.19.1
Powered by blists - more mailing lists