[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.
This commit is contained in:
Marcus Shawcroft 2015-03-22 07:48:07 +00:00 committed by Marcus Shawcroft
parent 357d1523b2
commit d9ced15d6e
5 changed files with 12 additions and 3 deletions

View File

@ -1,4 +1,4 @@
2015-03-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
2015-03-25 Marcus Shawcroft <marcus.shawcroft@arm.com>
* elfnn-aarch64.c (_bfd_aarch64_erratum_835769_scan):
Update erratum count.

View File

@ -1,3 +1,8 @@
2015-03-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
* emultempl/aarch64elf.em (_aarch64_add_stub_section): Set section
alignment to 2.
2015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com>
* emultempl/aarch64elf.em

View File

@ -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);

View File

@ -1,3 +1,8 @@
2015-03-25 Marcus Shawcroft <marcus.shawcroft@arm.com>
* ld-aarch64/erratum835769.d: Adjust for removal of padding before
835769 workaround stubs.
2015-03-25 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
* ld-gc/all-debug-sections.d: New file.

View File

@ -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