[POWERPC] iSeries: supress lparmap.c warning

Segher Boessenkool segher at kernel.crashing.org
Mon Dec 18 21:41:08 EST 2006


> 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




More information about the Linuxppc-dev mailing list