[SPARC64]: Fix inconsistent .section usage in lib/

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Friday, February 1, 2008 - 4:03 am

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=478708...
Commit:     4787083fcce866e275bedeb87cd6dfba34c84253
Parent:     c6d64c16bb193c8ca2ccc0b3c556a4574a02408b
Author:     Sam Ravnborg <sam@ravnborg.org>
AuthorDate: Thu Jan 31 16:48:49 2008 -0800
Committer:  David S. Miller <davem@davemloft.net>
CommitDate: Thu Jan 31 19:32:44 2008 -0800

    [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 <linux/init.h> 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 <linux/init.h> contains
    section definitions for use in .S files.
    
    Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
    Signed-off-by: David S. Miller <davem@davemloft.net>
---
 arch/sparc64/lib/GENbzero.S |    2 +-
 arch/sparc64/lib/NGbzero.S  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/sparc64/lib/GENbzero.S b/arch/sparc64/lib/GENbzero.S
index f9c71d6..6a4f956 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 f10e452..814d5f7 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;			\
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[SPARC64]: Fix inconsistent .section usage in lib/, Linux Kernel Mailing ..., (Fri Feb 1, 4:03 am)