summaryrefslogtreecommitdiff
path: root/gcc/targhooks.c
diff options
context:
space:
mode:
authorJoao Moreira <jmoreira@suse.de>2019-04-17 18:24:23 +0000
committerJeff Law <law@gcc.gnu.org>2019-04-17 12:24:23 -0600
commit62a64d0af19020933e975c9b942f5b4f0b7d3ca5 (patch)
tree68899beeb386c5c7b04a6c2ca55265b5ffc596b6 /gcc/targhooks.c
parente050689bb868697eb893b24877efc749b7730562 (diff)
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
Diffstat (limited to 'gcc/targhooks.c')
-rw-r--r--gcc/targhooks.c2
1 files changed, 1 insertions, 1 deletions
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);