From: Fangrui Song Date: Wed, 8 Jan 2020 04:46:26 +0000 (-0800) Subject: Align __patchable_function_entries to POINTER_SIZE [PR93194] X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a5d8a40617df40680cf7de6109925e4f1f1b9ae2;p=gcc.git 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. --- 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);