From: Joao Moreira Date: Wed, 17 Apr 2019 18:24:23 +0000 (+0000) Subject: targhooks.c (default_print_patchable_function_entry): Emit __patchable_function_entri... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=62a64d0af19020933e975c9b942f5b4f0b7d3ca5;p=gcc.git targhooks.c (default_print_patchable_function_entry): Emit __patchable_function_entries section with writable flags to allow... * targhooks.c (default_print_patchable_function_entry): Emit __patchable_function_entries section with writable flags to allow relocation resolution. From-SVN: r270417 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a886044d33b..d18462109b0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-04-10 Joao Moreira + + * targhooks.c (default_print_patchable_function_entry): Emit + __patchable_function_entries section with writable flags to allow + relocation resolution. + 2019-04-17 Jonny Grant * collect2.c (main): Change gcc.gnu.org URL to HTTPS. diff --git a/gcc/targhooks.c b/gcc/targhooks.c index cfde248dd3d..02b9dc59611 100644 --- a/gcc/targhooks.c +++ b/gcc/targhooks.c @@ -1818,7 +1818,7 @@ default_print_patchable_function_entry (FILE *file, ASM_GENERATE_INTERNAL_LABEL (buf, "LPFE", patch_area_number); switch_to_section (get_section ("__patchable_function_entries", - 0, NULL)); + SECTION_WRITE | SECTION_RELRO, NULL)); fputs (asm_op, file); assemble_name_raw (file, buf); fputc ('\n', file);