mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-11 13:27:06 +09:00
Merge tag 'v4.9.207' of git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable into odroidg12-4.9.y
This is the 4.9.207 stable release
This commit is contained in:
@@ -1157,6 +1157,14 @@ static const struct sectioncheck *section_mismatch(
|
||||
* fromsec = text section
|
||||
* refsymname = *.constprop.*
|
||||
*
|
||||
* Pattern 6:
|
||||
* Hide section mismatch warnings for ELF local symbols. The goal
|
||||
* is to eliminate false positive modpost warnings caused by
|
||||
* compiler-generated ELF local symbol names such as ".LANCHOR1".
|
||||
* Autogenerated symbol names bypass modpost's "Pattern 2"
|
||||
* whitelisting, which relies on pattern-matching against symbol
|
||||
* names to work. (One situation where gcc can autogenerate ELF
|
||||
* local symbols is when "-fsection-anchors" is used.)
|
||||
**/
|
||||
static int secref_whitelist(const struct sectioncheck *mismatch,
|
||||
const char *fromsec, const char *fromsym,
|
||||
@@ -1195,6 +1203,10 @@ static int secref_whitelist(const struct sectioncheck *mismatch,
|
||||
match(fromsym, optim_symbols))
|
||||
return 0;
|
||||
|
||||
/* Check for pattern 6 */
|
||||
if (strstarts(fromsym, ".L"))
|
||||
return 0;
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user