scripts/mod/modpost.c: permit '.cranges' secton for sh64 architecture.
authorChen Gang <gang.chen@asianux.com>
Tue, 20 Aug 2013 06:03:19 +0000 (15:33 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 20 Aug 2013 06:07:40 +0000 (15:37 +0930)
Need permit '.cranges' section for sh64 architecture, or modpost will
report warning:

    LD      init/built-in.o
  WARNING: init/built-in.o (.cranges): unexpected non-allocatable section.
  Did you forget to use "ax"/"aw" in a .S file?
  Note that for example <linux/init.h> contains
  section definitions for use in .S files.

Signed-off-by: Chen Gang <gang.chen@asianux.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
scripts/mod/modpost.c

index 62164348ecf7104e0a91671430702efbfb5fd610..8247979e8f64dd2eef5671544d3b39e8ed3487fc 100644 (file)
@@ -821,6 +821,7 @@ static const char *section_white_list[] =
 {
        ".comment*",
        ".debug*",
+       ".cranges",             /* sh64 */
        ".zdebug*",             /* Compressed debug sections. */
        ".GCC-command-line",    /* mn10300 */
        ".GCC.command.line",    /* record-gcc-switches, non mn10300 */