Subject: Re: help with ppc sections?

From: Segher Boessenkool <[email-masked]>
Date: Tue, 31 Jul 2007 18:38:11 +0200

> 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