This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] sim: avr: fix _start testsuite symbol
- From: Michael Frysinger <vapier at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 29 Mar 2015 08:14:37 -0000
- Subject: [binutils-gdb] sim: avr: fix _start testsuite symbol
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=4f5cce88bf504a2f0010f7ad384003984da6ce00
commit 4f5cce88bf504a2f0010f7ad384003984da6ce00
Author: Mike Frysinger <vapier@gentoo.org>
Date: Sun Mar 29 03:36:13 2015 -0400
sim: avr: fix _start testsuite symbol
Make sure we use the symbol the linker expects by default, and we export
it so it can be found.
Diff:
---
sim/testsuite/sim/avr/ChangeLog | 4 ++++
sim/testsuite/sim/avr/testutils.inc | 3 ++-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/sim/testsuite/sim/avr/ChangeLog b/sim/testsuite/sim/avr/ChangeLog
index a5e9c9c..8c1bde2 100644
--- a/sim/testsuite/sim/avr/ChangeLog
+++ b/sim/testsuite/sim/avr/ChangeLog
@@ -1,3 +1,7 @@
+2015-03-29 Mike Frysinger <vapier@gentoo.org>
+
+ * testutils.inc (start): Change to _start and add global markings.
+
2015-03-28 Mike Frysinger <vapier@gentoo.org>
* pass.s, allinsn.exp, testutils.inc: New files.
diff --git a/sim/testsuite/sim/avr/testutils.inc b/sim/testsuite/sim/avr/testutils.inc
index 95a14fc..baad45d 100644
--- a/sim/testsuite/sim/avr/testutils.inc
+++ b/sim/testsuite/sim/avr/testutils.inc
@@ -37,5 +37,6 @@
# All assembler tests should start with a call to "start"
.macro start
.text
-__start:
+.global _start
+_start:
.endm