From c6d64c16bb193c8ca2ccc0b3c556a4574a02408b Mon Sep 17 00:00:00 2001 From: Sam Ravnborg Date: Mon, 28 Jan 2008 21:06:23 -0800 Subject: [SPARC/SPARC64]: Fix usage of .section .sched.text in assembler code. ld will generate an unique named section when assembler do not use "ax" but gcc does. Add the missing annotation. Signed-off-by: Sam Ravnborg Signed-off-by: David S. Miller --- arch/sparc/lib/rwsem.S | 2 +- arch/sparc64/lib/rwsem.S | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'arch') diff --git a/arch/sparc/lib/rwsem.S b/arch/sparc/lib/rwsem.S index 20657744c86..f406b1f2279 100644 --- a/arch/sparc/lib/rwsem.S +++ b/arch/sparc/lib/rwsem.S @@ -7,7 +7,7 @@ #include #include - .section .sched.text + .section .sched.text, "ax" .align 4 .globl ___down_read diff --git a/arch/sparc64/lib/rwsem.S b/arch/sparc64/lib/rwsem.S index 75f0e6b951d..1a4cc5654de 100644 --- a/arch/sparc64/lib/rwsem.S +++ b/arch/sparc64/lib/rwsem.S @@ -6,7 +6,7 @@ #include - .section .sched.text + .section .sched.text, "ax" .globl __down_read __down_read: -- cgit v1.2.3-18-g5258 From 4787083fcce866e275bedeb87cd6dfba34c84253 Mon Sep 17 00:00:00 2001 From: Sam Ravnborg Date: Thu, 31 Jan 2008 16:48:49 -0800 Subject: [SPARC64]: Fix inconsistent .section usage in lib/ A few places missed the "a" specifier for the __ex_table section. Add these so we avoid generation an additional section at link time. Latest modpost would otherwise complain like this: WARNING: vmlinux.o (__ex_table.2): section name inconsistency. (.[number]+) following section name. Did you forget to use "ax"/"aw" in a .S file? Note that for example contains section definitions for use in .S files. WARNING: vmlinux.o (__ex_table.4): section name inconsistency. (.[number]+) following section name. Did you forget to use "ax"/"aw" in a .S file? Note that for example contains section definitions for use in .S files. Signed-off-by: Sam Ravnborg Signed-off-by: David S. Miller --- arch/sparc64/lib/GENbzero.S | 2 +- arch/sparc64/lib/NGbzero.S | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'arch') diff --git a/arch/sparc64/lib/GENbzero.S b/arch/sparc64/lib/GENbzero.S index f9c71d64eba..6a4f956a2f7 100644 --- a/arch/sparc64/lib/GENbzero.S +++ b/arch/sparc64/lib/GENbzero.S @@ -10,7 +10,7 @@ .align 4; \ 99: retl; \ mov %o1, %o0; \ - .section __ex_table; \ + .section __ex_table,"a";\ .align 4; \ .word 98b, 99b; \ .text; \ diff --git a/arch/sparc64/lib/NGbzero.S b/arch/sparc64/lib/NGbzero.S index f10e4529ee3..814d5f7a45e 100644 --- a/arch/sparc64/lib/NGbzero.S +++ b/arch/sparc64/lib/NGbzero.S @@ -10,7 +10,7 @@ .align 4; \ 99: retl; \ mov %o1, %o0; \ - .section __ex_table; \ + .section __ex_table,"a";\ .align 4; \ .word 98b, 99b; \ .text; \ -- cgit v1.2.3-18-g5258