* targhooks.c (default_print_patchable_function_entry): Emit
__patchable_function_entries section with writable flags to allow
relocation resolution.
From-SVN: r270417
+2019-04-10 Joao Moreira <jmoreira@suse.de>
+
+ * targhooks.c (default_print_patchable_function_entry): Emit
+ __patchable_function_entries section with writable flags to allow
+ relocation resolution.
+
2019-04-17 Jonny Grant <jg@jguk.org>
* collect2.c (main): Change gcc.gnu.org URL to HTTPS.
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);