From a5d8a40617df40680cf7de6109925e4f1f1b9ae2 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Tue, 7 Jan 2020 20:46:26 -0800 Subject: [PATCH] Align __patchable_function_entries to POINTER_SIZE [PR93194] 2020-01-20 Fangrui Song gcc/ PR middle-end/93194 * targhooks.c (default_print_patchable_function_entry): Align to POINTER_SIZE. --- gcc/ChangeLog | 6 ++++++ gcc/targhooks.c | 1 + 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5ae2773a2b9..436c8924a48 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2020-01-20 Fangrui Song + + PR middle-end/93194 + * targhooks.c (default_print_patchable_function_entry): Align to + POINTER_SIZE. + 2020-01-20 H.J. Lu PR target/93319 diff --git a/gcc/targhooks.c b/gcc/targhooks.c index 4819bb8058f..a3f83918f8e 100644 --- a/gcc/targhooks.c +++ b/gcc/targhooks.c @@ -1812,6 +1812,7 @@ default_print_patchable_function_entry (FILE *file, switch_to_section (get_section ("__patchable_function_entries", SECTION_WRITE | SECTION_RELRO, NULL)); + assemble_align (POINTER_SIZE); fputs (asm_op, file); assemble_name_raw (file, buf); fputc ('\n', file); -- 2.30.2