summaryrefslogtreecommitdiff
path: root/gcc/targhooks.c
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2020-01-07 20:46:26 -0800
committerRichard Sandiford <richard.sandiford@arm.com>2020-01-20 13:47:51 +0000
commita5d8a40617df40680cf7de6109925e4f1f1b9ae2 (patch)
tree38a4e13409c3a0a60100262eb4575ab4496ae0a0 /gcc/targhooks.c
parentad1a3914ae8d67c94b0d2428e3f9672e7db491a1 (diff)
Align __patchable_function_entries to POINTER_SIZE [PR93194]
2020-01-20 Fangrui Song <maskray@google.com> gcc/ PR middle-end/93194 * targhooks.c (default_print_patchable_function_entry): Align to POINTER_SIZE.
Diffstat (limited to 'gcc/targhooks.c')
-rw-r--r--gcc/targhooks.c1
1 files changed, 1 insertions, 0 deletions
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);