Ensure 8-byte alignment for AArch64 stubs.
[deliverable/binutils-gdb.git] / ld / emultempl / aarch64elf.em
index 34d03f31ce24314a74efd6175ba92d0020dfaf11..fe0255c57f19b5e6034e0191f0bff4376f67f93f 100644 (file)
@@ -174,7 +174,9 @@ elf${ELFSIZE}_aarch64_add_stub_section (const char *stub_sec_name,
   if (stub_sec == NULL)
     goto err_ret;
 
-  bfd_set_section_alignment (stub_file->the_bfd, stub_sec, 2);
+  /* Long branch stubs contain a 64-bit address, so the section requires
+     8 byte alignment.  */
+  bfd_set_section_alignment (stub_file->the_bfd, stub_sec, 3);
 
   output_section = input_section->output_section;
   os = lang_output_section_get (output_section);
This page took 0.025079 seconds and 4 git commands to generate.