浏览代码

[POWERPC] iSeries: suppress build warning in lparmap.c

lparmap.c: Assembler messages:
lparmap.c:51: Warning: ignoring changed section attributes for .text

Idea from Segher Boessenkool.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Stephen Rothwell 18 年之前
父节点
当前提交
8cf44080eb
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      arch/powerpc/kernel/lparmap.c

+ 2 - 1
arch/powerpc/kernel/lparmap.c

@@ -10,7 +10,8 @@
 #include <asm/pgtable.h>
 #include <asm/pgtable.h>
 #include <asm/iseries/lpar_map.h>
 #include <asm/iseries/lpar_map.h>
 
 
-const struct LparMap __attribute__((__section__(".text"))) xLparMap = {
+/* The # is to stop gcc trying to make .text nonexecutable */
+const struct LparMap __attribute__((__section__(".text #"))) xLparMap = {
 	.xNumberEsids = HvEsidsToMap,
 	.xNumberEsids = HvEsidsToMap,
 	.xNumberRanges = HvRangesToMap,
 	.xNumberRanges = HvRangesToMap,
 	.xSegmentTableOffs = STAB0_PAGE,
 	.xSegmentTableOffs = STAB0_PAGE,