From: Jan Beulich <[email protected]> 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]> Signed-off-by: Sam Ravnborg <[email protected]> --- scripts/mod/modpost.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index ec036c2..3f3848f 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c @@ -609,7 +609,7 @@ static int strrcmp(const char *s, const char *sub) * 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, *_timer * * Pattern 3: @@ -672,7 +672,9 @@ static int secref_whitelist(const char *modname, const char *tosec, (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++) -- 1.5.0.6 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- [PATCH 24/33] Whitelist references from __dbe_table to .init
- From: Sam Ravnborg <[email protected]>
- [PATCH 24/33] Whitelist references from __dbe_table to .init
- References:
- [PATCH 01/33] kbuild: asm-offsets.h is now cleaned with O=.. builds
- From: Sam Ravnborg <[email protected]>
- [PATCH 02/33] kbuild: New 'cc-fullversion' macro
- From: Sam Ravnborg <[email protected]>
- [PATCH 03/33] powerpc: Refuse to build 64-bit with GCC-4.2.0 and CONFIG_MODULES
- From: Sam Ravnborg <[email protected]>
- [PATCH 04/33] kbuild: document cc-fullversion
- From: Sam Ravnborg <[email protected]>
- [PATCH 05/33] kbuild: avoid environment to set variables used by kbuild
- From: Sam Ravnborg <[email protected]>
- [PATCH 07/33] kconfig: use POSIX equality test in check-lxdialog.sh
- From: Sam Ravnborg <[email protected]>
- [PATCH 08/33] kbuild: add support for reading stdin with gen_init_cpio
- From: Sam Ravnborg <[email protected]>
- [PATCH 09/33] kbuild: add support for squashing uid/gid in gen_initramfs_list.sh
- From: Sam Ravnborg <[email protected]>
- [PATCH 10/33] kconfig: fix update-po-config
- From: Sam Ravnborg <[email protected]>
- [PATCH 11/33] kbuild: make better section mismatch reports on i386 and mips
- From: Sam Ravnborg <[email protected]>
- [PATCH 12/33] kbuild: make better section mismatch reports on arm
- From: Sam Ravnborg <[email protected]>
- [PATCH 13/33] kbuild: suppress modpost warnings for references from the .toc section as used by powerpc
- From: Sam Ravnborg <[email protected]>
- [PATCH 14/33] kbuild: .paravirtprobe section is obsolete, so modpost doesn't need to handle it
- From: Sam Ravnborg <[email protected]>
- [PATCH 15/33] kbuild: ignore section mismatch warnings originating from .note section
- From: Sam Ravnborg <[email protected]>
- [PATCH 16/33] kbuild: refactor code in modpost to improve maintainability
- From: Sam Ravnborg <[email protected]>
- [PATCH 17/33] kbuild: consolidate section checks
- From: Sam Ravnborg <[email protected]>
- [PATCH 18/33] kbuild: warn about references from .init.text to .exit.text
- From: Sam Ravnborg <[email protected]>
- [PATCH 19/33] kbuild: remove hardcoded apic_es7000 from modpost
- From: Sam Ravnborg <[email protected]>
- [PATCH 21/33] kbuild: whitelist references from variables named _timer to .init.text
- From: Sam Ravnborg <[email protected]>
- [PATCH 22/33] kbuild: do section mismatch check on full vmlinux
- From: Sam Ravnborg <[email protected]>
- [PATCH 01/33] kbuild: asm-offsets.h is now cleaned with O=.. builds
- Prev by Date: [PATCH 29/33] kbuild: use -fno-optimize-sibling-calls unconditionally
- Next by Date: [PATCH 20/33] kbuild: remove hardcoded _logo names from modpost
- Previous by thread: [PATCH 22/33] kbuild: do section mismatch check on full vmlinux
- Next by thread: [PATCH 24/33] Whitelist references from __dbe_table to .init
- Index(es):