summaryrefslogtreecommitdiffstats
path: root/binutils-2.25
diff options
context:
space:
mode:
authorMarcus Shawcroft <marcus.shawcroft@gmail.com>2015-03-22 07:48:07 +0000
committerAndrew Hsieh <andrewhsieh@google.com>2015-03-30 21:39:11 -0700
commit53079dc96023ca7367d09acc8fdc5044d4ffdfb6 (patch)
tree88d69c0039f0a2156b587369fa2c680ede215c42 /binutils-2.25
parent41d20d6703b40032054016f67fee40b6a03ca4a4 (diff)
downloadtoolchain_binutils-53079dc96023ca7367d09acc8fdc5044d4ffdfb6.tar.gz
toolchain_binutils-53079dc96023ca7367d09acc8fdc5044d4ffdfb6.tar.bz2
toolchain_binutils-53079dc96023ca7367d09acc8fdc5044d4ffdfb6.zip
[AArch64] Remove padding before stub sections.
Lower stub alignment from 8 to 4 bytes thus removing padding between input section content and stub section content. Change-Id: Ic3afff9bc2f013b4b47e181b269b40231385080a
Diffstat (limited to 'binutils-2.25')
-rw-r--r--binutils-2.25/ld/emultempl/aarch64elf.em2
-rw-r--r--binutils-2.25/ld/testsuite/ld-aarch64/erratum835769.d1
2 files changed, 1 insertions, 2 deletions
diff --git a/binutils-2.25/ld/emultempl/aarch64elf.em b/binutils-2.25/ld/emultempl/aarch64elf.em
index 42e8056f..8572e5e5 100644
--- a/binutils-2.25/ld/emultempl/aarch64elf.em
+++ b/binutils-2.25/ld/emultempl/aarch64elf.em
@@ -170,7 +170,7 @@ 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, 3);
+ bfd_set_section_alignment (stub_file->the_bfd, stub_sec, 2);
output_section = input_section->output_section;
os = lang_output_section_get (output_section);
diff --git a/binutils-2.25/ld/testsuite/ld-aarch64/erratum835769.d b/binutils-2.25/ld/testsuite/ld-aarch64/erratum835769.d
index a0402365..1ff8d057 100644
--- a/binutils-2.25/ld/testsuite/ld-aarch64/erratum835769.d
+++ b/binutils-2.25/ld/testsuite/ld-aarch64/erratum835769.d
@@ -32,7 +32,6 @@ Disassembly of section .text:
[ \t0-9a-f]+:[ \t0-9a-z]+[ \t]+b[ \t]+[0-9a-f]+ <__erratum_835769_veneer_2>
[ \t0-9a-f]+:[ \t]+aa0503e0[ \t]+mov[ \t]+x0, x5
[ \t0-9a-f]+:[ \t]+d65f03c0[ \t]+ret
-[ \t0-9a-f]+:[ \t]+00000000[ \t]+.inst[ \t]+0x00000000 ; undefined
[0-9a-f]+ <__erratum_835769_veneer_2>:
[ \t0-9a-f]+:[ \t]+9b031885[ \t]+madd[ \t]+x5, x4, x3, x6