Re: [POWERPC] iSeries: supress lparmap.c warning
From: Segher Boessenkool <hidden>
Date: 2006-12-18 10:41:33
From: Segher Boessenkool <hidden>
Date: 2006-12-18 10:41:33
lparmap.c: Assembler messages: lparmap.c:43: Warning: ignoring changed section attributes for .text We do not need the .section ops in the generated .s file, so just remove them.
Nasty stuff.
const struct LparMap __attribute__((__section__(".text"))) xLparMap = {
This will declare the .text section as non-executable. Whoops.
Another way around this, which is perhaps a bit hacky but
doesn't require your post-processing, is to use
__section__(".text #")
which will cut off the compiler-generated "a" (where the assembler
wants "ax", which is the default) :-)
Segher