Skip to contentSkip to conversation

scripts/mod/modpost.c: permit '.cranges' secton for sh64 architecture.

PATCH Applied Chen Gang 2 participants 3 messages Aug 1, 2013 – Aug 2, 2013

Subsystems (2)
lore
Share & tools
lore

Chen Gang

author
#0 lore raw

PATCH 1/1 scripts/mod/modpost.c: permit '.cranges' secton for sh64 architecture.

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.

---
 scripts/mod/modpost.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
scripts/mod/modpost.c +1 -0
index 6216434..8247979 100644
@@ -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 */
Signature · 1 line
1.7.7.6
#1 lore raw
Quoted 11 lines · Chen Gang

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.

Applied.

Thanks,
Rusty.

Quoted 17 lines
---
 scripts/mod/modpost.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
scripts/mod/modpost.c +1 -0
index 6216434..8247979 100644
@@ -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 */
Signature · 1 line
1.7.7.6
author
#2 lore raw
Quoted 11 lines · Rusty Russell
Quoted 10 lines · Chen Gang

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.

Quoted 4 lines
Quoted 1 line

Applied.

Thank you too.

Quoted 22 lines

Thanks,
Rusty.

Quoted 17 lines
---
 scripts/mod/modpost.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
scripts/mod/modpost.c +1 -0
index 6216434..8247979 100644
@@ -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 */
Signature · 1 line
1.7.7.6
Signature · 1 line
Chen Gang