aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite
diff options
context:
space:
mode:
authorThiemo Seufer <ths@networkno.de>2006-05-17 11:30:24 +0000
committerThiemo Seufer <ths@networkno.de>2006-05-17 11:30:24 +0000
commit10388905265275f94845fbefde8969194864873a (patch)
tree30c2118053316f864115dc39d6431e51fa58acf5 /ld/testsuite
parentf3520d2f1d37d9f1e0af30da31be7a729962f602 (diff)
downloadgdb-10388905265275f94845fbefde8969194864873a.zip
gdb-10388905265275f94845fbefde8969194864873a.tar.gz
gdb-10388905265275f94845fbefde8969194864873a.tar.bz2
* ld-elfweak/size2.d, ld-elfweak/size2a.s, ld-elfweak/size2b.s:
Add __start as entry symbol.
Diffstat (limited to 'ld/testsuite')
-rw-r--r--ld/testsuite/ChangeLog5
-rw-r--r--ld/testsuite/ld-elfweak/size2.d2
-rw-r--r--ld/testsuite/ld-elfweak/size2a.s4
-rw-r--r--ld/testsuite/ld-elfweak/size2b.s4
4 files changed, 14 insertions, 1 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index ae3ce7a..8952691 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2006-05-17 Thiemo Seufer <ths@mips.com>
+
+ * ld-elfweak/size2.d, ld-elfweak/size2a.s, ld-elfweak/size2b.s:
+ Add __start as entry symbol.
+
2006-05-16 Thiemo Seufer <ths@mips.com>
* ld-elf/orphan.ld: Add placement for MIPS .reginfo section.
diff --git a/ld/testsuite/ld-elfweak/size2.d b/ld/testsuite/ld-elfweak/size2.d
index 3000512..4468dda 100644
--- a/ld/testsuite/ld-elfweak/size2.d
+++ b/ld/testsuite/ld-elfweak/size2.d
@@ -4,7 +4,7 @@
#readelf: -s
Symbol table '.symtab' contains .* entries:
#...
- .*: [0-9a-f]* +1 +FUNC +GLOBAL +DEFAULT +[0-9] +_start
+ .*: [0-9a-f]* +1 +FUNC +GLOBAL +DEFAULT +[0-9] +__?start
#...
.*: [0-9a-f]* +1 +FUNC +WEAK +DEFAULT +[0-9] +foo
#...
diff --git a/ld/testsuite/ld-elfweak/size2a.s b/ld/testsuite/ld-elfweak/size2a.s
index 66b6d17..c9ad914 100644
--- a/ld/testsuite/ld-elfweak/size2a.s
+++ b/ld/testsuite/ld-elfweak/size2a.s
@@ -1,9 +1,13 @@
.text
.global _start
+ .global __start
.type _start, "function"
+ .type __start, "function"
_start:
+__start:
.byte 0
.size _start, 1
+ .size __start, 1
.weak foo
.type foo, "function"
diff --git a/ld/testsuite/ld-elfweak/size2b.s b/ld/testsuite/ld-elfweak/size2b.s
index 27b89db..946c838 100644
--- a/ld/testsuite/ld-elfweak/size2b.s
+++ b/ld/testsuite/ld-elfweak/size2b.s
@@ -1,10 +1,14 @@
.text
.weak _start
+ .weak __start
.type _start, "function"
+ .type __start, "function"
_start:
+__start:
.byte 0
.byte 0
.size _start, 2
+ .size __start, 2
.weak foo
.type foo, "function"