[binutils-gdb][ld][AArch64] Fix group_sections algorithm
authorWilco Dijkstra <wdijkstr@arm.com>
Mon, 4 May 2020 14:51:56 +0000 (15:51 +0100)
committerNick Clifton <nickc@redhat.com>
Mon, 4 May 2020 14:51:56 +0000 (15:51 +0100)
commitcff69cf4cf97e1eb4c2cca8e985e403b1a97c059
treee6da7c4ad676bba189e360caf912b069ed876376
parent070b775f03ebdab6d0d007787fe19b916af4439c
[binutils-gdb][ld][AArch64] Fix group_sections algorithm

PR ld/25665
* bfd/elfnn-aarch64.c (group_sections): Copy implementation
from elf32-arm.c.
* testsuite/ld-aarch64/aarch64-elf.exp: Add new test.
* testsuite/ld-aarch64/farcall-group.s: New large group test.
* testsuite/ld-aarch64/farcall-group.d: Likewise.
bfd/ChangeLog
bfd/elfnn-aarch64.c
ld/ChangeLog
ld/testsuite/ld-aarch64/aarch64-elf.exp
ld/testsuite/ld-aarch64/farcall-group.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/farcall-group.s [new file with mode: 0644]