This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] Fix Thumb-Thumb farcall v6-M (no profile) test
- From: Thomas Preud'homme <thopre01 at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 14 Jan 2016 10:02:26 -0000
- Subject: [binutils-gdb] Fix Thumb-Thumb farcall v6-M (no profile) test
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=4c4ac9642a973e825d71584b526ee8bbb83fdbd2
commit 4c4ac9642a973e825d71584b526ee8bbb83fdbd2
Author: Thomas Preud'homme <thomas.preudhomme@arm.com>
Date: Thu Jan 14 18:00:24 2016 +0800
Fix Thumb-Thumb farcall v6-M (no profile) test
2016-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
ld/
* testsuite/ld-arm/arm-elf.exp (Thumb-Thumb farcall v6-M (no profile)):
Set address of .foo section when linking.
* testsuite/ld-arm/farcall-thumb-thumb-m-no-profile-b.s: Place myfunc
in .foo section.
* testsuite/ld-arm/farcall-thumb-thumb-m-no-profile.d: Adapt expected
output to the above changes.
Diff:
---
ld/ChangeLog | 9 +++++++++
ld/testsuite/ld-arm/arm-elf.exp | 2 +-
ld/testsuite/ld-arm/farcall-thumb-thumb-m-no-profile-b.s | 3 +--
ld/testsuite/ld-arm/farcall-thumb-thumb-m-no-profile.d | 10 ++++------
4 files changed, 15 insertions(+), 9 deletions(-)
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 12cda4e..09e11f5 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,12 @@
+2016-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
+
+ * testsuite/ld-arm/arm-elf.exp (Thumb-Thumb farcall v6-M (no profile)):
+ Set address of .foo section when linking.
+ * testsuite/ld-arm/farcall-thumb-thumb-m-no-profile-b.s: Place myfunc
+ in .foo section.
+ * testsuite/ld-arm/farcall-thumb-thumb-m-no-profile.d: Adapt expected
+ output to the above changes.
+
2016-01-13 Nick Clifton <nickc@redhat.com>
* testsuite/ld-elf/elf.exp (-Bymsolic-functions): Expect to fail
diff --git a/ld/testsuite/ld-arm/arm-elf.exp b/ld/testsuite/ld-arm/arm-elf.exp
index 70ca829..89cec66 100644
--- a/ld/testsuite/ld-arm/arm-elf.exp
+++ b/ld/testsuite/ld-arm/arm-elf.exp
@@ -481,7 +481,7 @@ set armeabitests_nonacl {
{"Thumb-Thumb farcall (PIC veneer)" "-Ttext 0x1000 --section-start .foo=0x2001014 --pic-veneer" "" "-march=armv4t" {farcall-thumb-thumb.s}
{{objdump -d farcall-thumb-thumb-pic-veneer.d}}
"farcall-thumb-thumb-pic-veneer"}
- {"Thumb-Thumb farcall v6-M (no profile)" "-Ttext 0x1000" "" ""
+ {"Thumb-Thumb farcall v6-M (no profile)" "-Ttext 0x1000 --section-start .foo=0x2001014" "" ""
{farcall-thumb-thumb-m-no-profile-a.s farcall-thumb-thumb-m-no-profile-b.s}
{{objdump -d farcall-thumb-thumb-m-no-profile.d}}
"farcall-thumb-thumb-m-no-profile"}
diff --git a/ld/testsuite/ld-arm/farcall-thumb-thumb-m-no-profile-b.s b/ld/testsuite/ld-arm/farcall-thumb-thumb-m-no-profile-b.s
index 6590021..7212be0 100644
--- a/ld/testsuite/ld-arm/farcall-thumb-thumb-m-no-profile-b.s
+++ b/ld/testsuite/ld-arm/farcall-thumb-thumb-m-no-profile-b.s
@@ -2,7 +2,6 @@
.thumb
.type myfunc, function
.global myfunc
- .text
- .space 102400000
+ .section .foo, "xa"
myfunc:
bx lr
diff --git a/ld/testsuite/ld-arm/farcall-thumb-thumb-m-no-profile.d b/ld/testsuite/ld-arm/farcall-thumb-thumb-m-no-profile.d
index 639fe5a..7d89b52 100644
--- a/ld/testsuite/ld-arm/farcall-thumb-thumb-m-no-profile.d
+++ b/ld/testsuite/ld-arm/farcall-thumb-thumb-m-no-profile.d
@@ -14,11 +14,9 @@ Disassembly of section .text:
100e: bc01 pop {r0}
1010: 4760 bx ip
1012: bf00 nop
- 1014: 061a9019 .word 0x061a9019
- \.\.\.
+ 1014: 02001015 .word 0x02001015
-00080000 <_stack>:
- \.\.\.
+Disassembly of section .foo:
-061a9018 <myfunc>:
- 61a9018: 4770 bx lr
+02001014 <myfunc>:
+ 2001014: 4770 bx lr