[PATCH] powerpc64le: ROP changes for _init/_fini

Adhemerval Zanella Netto adhemerval.zanella@linaro.org
Tue Oct 8 12:15:44 GMT 2024



On 08/10/24 04:09, Sachin Monga wrote:
> -mrop-protect is gcc flag for ROP enablement from "configure" command.
> However, power7 files must not use this flag.
> 
> On 07/10/24 9:25 pm, Andreas Schwab wrote:
>> On Okt 07 2024, Sachin Monga wrote:
>>
>>> diff --git a/sysdeps/powerpc/powerpc64/multiarch/Makefile b/sysdeps/powerpc/powerpc64/multiarch/Makefile
>>> index b847c19049..769625b70d 100644
>>> --- a/sysdeps/powerpc/powerpc64/multiarch/Makefile
>>> +++ b/sysdeps/powerpc/powerpc64/multiarch/Makefile
>>> @@ -38,7 +38,9 @@ sysdep_routines += memchr-power10 memcmp-power10 memcpy-power10 \
>>>              strlen-power9 strncpy-power9 stpncpy-power9 strlen-power10
>>>   endif
>>>   CFLAGS-strncase-power7.c += -mcpu=power7 -funroll-loops
>>> +CFLAGS-strncase-power7.c := $(filter-out -mrop-protect, $(strncase-power7-CFLAGS))
>> Where is strncase-power7-CFLAGS coming from?
>>

I would be interesting to explain a bit on commit message what ROP aim
to do on, and when it was added on POWER ISA so the reviewed can have
some context here.  


More information about the Libc-alpha mailing list