help with ppc sections?

Segher Boessenkool segher at kernel.crashing.org
Wed Aug 1 02:38:11 EST 2007


> The ppc64 version appends ',"a"' to the kprobes.text section line.  Is
> this needed here as well?  Could someone elaborate on exactly what its
> purpose is?

It's the (ELF) section attributes for the section.  If this
is executable code, it should be "ax"; if it's writable, it
should be "wa"; if it's not initialised, it should be "".

If the section name followed the normal naming conventions,
(newer) GCC could figure out the section attributes itself;
but then, ".text.kprobes" would imply executable, maybe the
section is really misnamed?  Or maybe you need the "ax"
flags :-)


Segher




More information about the Linuxppc-dev mailing list