aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-aarch64/farcall-group.s
diff options
context:
space:
mode:
authorWilco Dijkstra <wdijkstr@arm.com>2020-05-04 15:51:56 +0100
committerNick Clifton <nickc@redhat.com>2020-05-04 15:51:56 +0100
commitcff69cf4cf97e1eb4c2cca8e985e403b1a97c059 (patch)
treee6da7c4ad676bba189e360caf912b069ed876376 /ld/testsuite/ld-aarch64/farcall-group.s
parent070b775f03ebdab6d0d007787fe19b916af4439c (diff)
downloadgdb-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.s15
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