diff options
author | Wilco Dijkstra <wdijkstr@arm.com> | 2020-05-04 15:51:56 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2020-05-04 15:51:56 +0100 |
commit | cff69cf4cf97e1eb4c2cca8e985e403b1a97c059 (patch) | |
tree | e6da7c4ad676bba189e360caf912b069ed876376 /ld/testsuite/ld-aarch64/farcall-group.s | |
parent | 070b775f03ebdab6d0d007787fe19b916af4439c (diff) | |
download | gdb-cff69cf4cf97e1eb4c2cca8e985e403b1a97c059.zip gdb-cff69cf4cf97e1eb4c2cca8e985e403b1a97c059.tar.gz gdb-cff69cf4cf97e1eb4c2cca8e985e403b1a97c059.tar.bz2 |
[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.
Diffstat (limited to 'ld/testsuite/ld-aarch64/farcall-group.s')
-rw-r--r-- | ld/testsuite/ld-aarch64/farcall-group.s | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ld/testsuite/ld-aarch64/farcall-group.s b/ld/testsuite/ld-aarch64/farcall-group.s new file mode 100644 index 0000000..7fe8f94 --- /dev/null +++ b/ld/testsuite/ld-aarch64/farcall-group.s @@ -0,0 +1,15 @@ + .section .text.t1 + .global _start + .global end +_start: + bl end + + .section .text.t2 + .zero 64 * 1024 * 1024 + + .section .text.t3 + .zero 64 * 1024 * 1024 + + .section .text.t4 +end: + bl _start |