Re: [PATCH] Fix __patchable_function_entries section flags

2019-04-10 Thread Marek Polacek
On Wed, Apr 10, 2019 at 03:00:43PM -0300, Joao Moreira wrote: > When -fpatchable-relocation-entry is used, gcc places nops on the > prologue of each compiled function and creates a section named > __patchable_function_entries which holds relocation entries for the > positions in which the nops were

[PATCH] Fix __patchable_function_entries section flags

2019-04-10 Thread Joao Moreira
When -fpatchable-relocation-entry is used, gcc places nops on the prologue of each compiled function and creates a section named __patchable_function_entries which holds relocation entries for the positions in which the nops were placed. As is, gcc creates this section without the proper section fl