modpost white list pattern adjustment
PATCH 1/1 modpost white list pattern adjustment
gcc puts data into .data.rel or .data.rel.* on some architectures (e.g. ia64) or under certain conditions, so whatever is legal relative to .data should also be legal for those other sections. Fixes a few modpost warnings on ia64.
Signed-off-by Jan Beulich <[email protected]>
scripts/mod/modpost.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-)
scripts/mod/modpost.c +4 -2
@@ -605,7 +605,7 @@ static int strrcmp(const char *s, const* warn here. * the pattern is identified by: * tosec = .init.text | .exit.text | .init.data -* fromsec = .data +* fromsec = .data | .data.rel | .data.rel.* * atsym = *driver, *_template, *_sht, *_ops, *_probe, *probe_one, *_console * * Pattern 3:
@@ -692,7 +692,9 @@ static int secref_whitelist(const char * (strcmp(tosec, ".exit.text") != 0) && (strcmp(tosec, ".init.data") != 0)) f2 =0 ; -if (strcmp (fromsec,".data" ) !=0 ) +if (strcmp (fromsec,".data" ) !=0 && +strcmp (fromsec,".data.rel" ) !=0 && +strncmp (fromsec,".data.rel." ,strlen (".data.rel." )) !=0 ) f2 =0 ;for (s = pat2sym; *s; s++)
Sam Ravnborg
AppliedQuoted 6 lines · Jan Beulich
gcc puts data into .data.rel or .data.rel.* on some architectures (e.g. ia64) or under certain conditions, so whatever is legal relative to .data should also be legal for those other sections. Fixes a few modpost warnings on ia64.
Signed-off-by Jan Beulich <[email protected]>
Applied.
Sam