Align __patchable_function_entries to POINTER_SIZE [PR93194]
authorFangrui Song <maskray@google.com>
Wed, 8 Jan 2020 04:46:26 +0000 (20:46 -0800)
committerRichard Sandiford <richard.sandiford@arm.com>
Mon, 20 Jan 2020 13:47:51 +0000 (13:47 +0000)
2020-01-20  Fangrui Song  <maskray@google.com>

gcc/
PR middle-end/93194
* targhooks.c (default_print_patchable_function_entry): Align to
POINTER_SIZE.

gcc/ChangeLog
gcc/targhooks.c

index 5ae2773a2b91b94cfe34880f6a81e5dab021279a..436c8924a48864c24686c756163ac6e532a24c47 100644 (file)
@@ -1,3 +1,9 @@
+2020-01-20  Fangrui Song  <maskray@google.com>
+
+       PR middle-end/93194
+       * targhooks.c (default_print_patchable_function_entry): Align to
+       POINTER_SIZE.
+
 2020-01-20  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR target/93319
index 4819bb8058fa5920e19d6ab5f2f7cc4e66aeec11..a3f83918f8e4eb3dd011740722ef9bae257ad8c1 100644 (file)
@@ -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);