summaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2018-09-20 12:28:09 -0700
committerH.J. Lu <hjl.tools@gmail.com>2018-09-20 12:31:20 -0700
commit3def145413e9707c985fa9c1dfda0682be750e55 (patch)
treeabf878a82b61b5248405709227ad4780b5955e53 /ld
parentRISC-V: Fix library search path for rv32. (diff)
downloadbinutils-gdb-3def145413e9707c985fa9c1dfda0682be750e55.tar.gz
binutils-gdb-3def145413e9707c985fa9c1dfda0682be750e55.tar.bz2
binutils-gdb-3def145413e9707c985fa9c1dfda0682be750e55.zip
ld: Add the entry symbol, _main, for LynxOS targets
Add the entry symbol, _main, to fix: FAIL: ld-elf/64ksec FAIL: ld-elf/comm-data4 FAIL: ld-elf/comm-data5 FAIL: ld-elf/eh5 FAIL: ld-elf/empty FAIL: ld-elf/empty2 FAIL: ld-elf/endsym FAIL: ld-elf/exclude3a FAIL: ld-elf/linkonce2 FAIL: ld-elf/orphan3 FAIL: ld-elf/pr12851 FAIL: ld-elf/pr14156a FAIL: ld-elf/pr14156b FAIL: ld-elf/pr14926 FAIL: ld-elf/pr20513a FAIL: ld-elf/pr20513b FAIL: ld-elf/stab FAIL: ld-elf/var1 FAIL: ld-elf/warn3 FAIL: section size overflow for i386-lynxos target. * testsuite/ld-checks/over2.s: Add "_main" for LynxOS targets. * testsuite/ld-elf/comm-data4.s: Likewise. * testsuite/ld-elf/comm-data5.s: Likewise. * testsuite/ld-elf/eh5b.s: Likewise. * testsuite/ld-elf/empty.s: Likewise. * testsuite/ld-elf/empty2.s: Likewise. * testsuite/ld-elf/exclude3.s: Likewise. * testsuite/ld-elf/fini0.s: Likewise. * testsuite/ld-elf/init0.s: Likewise. * testsuite/ld-elf/linkonce1b.s: Likewise. * testsuite/ld-elf/orphan3a.s: Likewise. * testsuite/ld-elf/pr14926.s: Likewise. * testsuite/ld-elf/pr20513a.s: Likewise. * testsuite/ld-elf/sec64k.exp: Likewise. * testsuite/ld-elf/start.s: Likewise. * testsuite/ld-elf/var1.s: Likewise.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog19
-rw-r--r--ld/testsuite/ld-checks/over2.s2
-rw-r--r--ld/testsuite/ld-elf/comm-data4.s2
-rw-r--r--ld/testsuite/ld-elf/comm-data5.s2
-rw-r--r--ld/testsuite/ld-elf/eh5b.s2
-rw-r--r--ld/testsuite/ld-elf/empty.s3
-rw-r--r--ld/testsuite/ld-elf/empty2.s3
-rw-r--r--ld/testsuite/ld-elf/exclude3.s3
-rw-r--r--ld/testsuite/ld-elf/fini0.s2
-rw-r--r--ld/testsuite/ld-elf/init0.s2
-rw-r--r--ld/testsuite/ld-elf/linkonce1b.s2
-rw-r--r--ld/testsuite/ld-elf/orphan3a.s2
-rw-r--r--ld/testsuite/ld-elf/pr14926.s2
-rw-r--r--ld/testsuite/ld-elf/pr20513a.s3
-rw-r--r--ld/testsuite/ld-elf/sec64k.exp2
-rw-r--r--ld/testsuite/ld-elf/start.s2
-rw-r--r--ld/testsuite/ld-elf/var1.s2
17 files changed, 55 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 1baf2b73058..d7545001d36 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,22 @@
+2018-09-20 H.J. Lu <hongjiu.lu@intel.com>
+
+ * testsuite/ld-checks/over2.s: Add "_main" for LynxOS targets.
+ * testsuite/ld-elf/comm-data4.s: Likewise.
+ * testsuite/ld-elf/comm-data5.s: Likewise.
+ * testsuite/ld-elf/eh5b.s: Likewise.
+ * testsuite/ld-elf/empty.s: Likewise.
+ * testsuite/ld-elf/empty2.s: Likewise.
+ * testsuite/ld-elf/exclude3.s: Likewise.
+ * testsuite/ld-elf/fini0.s: Likewise.
+ * testsuite/ld-elf/init0.s: Likewise.
+ * testsuite/ld-elf/linkonce1b.s: Likewise.
+ * testsuite/ld-elf/orphan3a.s: Likewise.
+ * testsuite/ld-elf/pr14926.s: Likewise.
+ * testsuite/ld-elf/pr20513a.s: Likewise.
+ * testsuite/ld-elf/sec64k.exp: Likewise.
+ * testsuite/ld-elf/start.s: Likewise.
+ * testsuite/ld-elf/var1.s: Likewise.
+
2018-09-20 Kito Cheng <kito@andestech.com>
* emulparams/elf32lriscv.sh: Correct the library search path.
diff --git a/ld/testsuite/ld-checks/over2.s b/ld/testsuite/ld-checks/over2.s
index dc6de0e6185..41ce67ec61a 100644
--- a/ld/testsuite/ld-checks/over2.s
+++ b/ld/testsuite/ld-checks/over2.s
@@ -1,4 +1,6 @@
.text
.globl _start
_start:
+ .globl _main
+_main:
.long 0
diff --git a/ld/testsuite/ld-elf/comm-data4.s b/ld/testsuite/ld-elf/comm-data4.s
index 60e0f3d6953..f2b608b9189 100644
--- a/ld/testsuite/ld-elf/comm-data4.s
+++ b/ld/testsuite/ld-elf/comm-data4.s
@@ -8,11 +8,13 @@ i .comm 4
.dc.a i
.globl main
+ .globl _main
.globl start
.globl _start
.globl __start
.text
main:
+_main:
start:
_start:
__start:
diff --git a/ld/testsuite/ld-elf/comm-data5.s b/ld/testsuite/ld-elf/comm-data5.s
index 2da32c71310..e74c2ebbe0e 100644
--- a/ld/testsuite/ld-elf/comm-data5.s
+++ b/ld/testsuite/ld-elf/comm-data5.s
@@ -8,11 +8,13 @@ i .comm 4
.dc.a i
.globl main
+ .globl _main
.globl start
.globl _start
.globl __start
.text
main:
+_main:
start:
_start:
__start:
diff --git a/ld/testsuite/ld-elf/eh5b.s b/ld/testsuite/ld-elf/eh5b.s
index fa27edd31d0..09ebf0904f9 100644
--- a/ld/testsuite/ld-elf/eh5b.s
+++ b/ld/testsuite/ld-elf/eh5b.s
@@ -25,10 +25,12 @@
.cfi_endproc
.globl main
+ .globl _main
.globl start
.globl _start
.globl __start
main:
+_main:
start:
_start:
__start:
diff --git a/ld/testsuite/ld-elf/empty.s b/ld/testsuite/ld-elf/empty.s
index 8c2d0e69f0b..059f208ad00 100644
--- a/ld/testsuite/ld-elf/empty.s
+++ b/ld/testsuite/ld-elf/empty.s
@@ -13,4 +13,7 @@ __start:
.type main,"function"
.global main
main:
+ .type _main,"function"
+ .global _main
+_main:
.long 0
diff --git a/ld/testsuite/ld-elf/empty2.s b/ld/testsuite/ld-elf/empty2.s
index deed3182f5c..46ec9280e9c 100644
--- a/ld/testsuite/ld-elf/empty2.s
+++ b/ld/testsuite/ld-elf/empty2.s
@@ -15,4 +15,7 @@ __start:
.type main,"function"
.global main
main:
+ .type _main,"function"
+ .global _main
+_main:
.long constant
diff --git a/ld/testsuite/ld-elf/exclude3.s b/ld/testsuite/ld-elf/exclude3.s
index 475088fd9dc..e32ad4763cd 100644
--- a/ld/testsuite/ld-elf/exclude3.s
+++ b/ld/testsuite/ld-elf/exclude3.s
@@ -11,6 +11,9 @@ __start:
.type main,"function"
.global main
main:
+ .type _main,"function"
+ .global _main
+_main:
.long 0
.section .foo1,"e", %progbits
.byte 0,0,0,0
diff --git a/ld/testsuite/ld-elf/fini0.s b/ld/testsuite/ld-elf/fini0.s
index 45e327c64ba..465f10c5aa2 100644
--- a/ld/testsuite/ld-elf/fini0.s
+++ b/ld/testsuite/ld-elf/fini0.s
@@ -7,6 +7,8 @@ _start:
__start:
.global main /* Used by HPPA targets. */
main:
+ .globl _main /* Used by LynxOS targets. */
+_main:
.dc.a 0
.section .fini, "a"
diff --git a/ld/testsuite/ld-elf/init0.s b/ld/testsuite/ld-elf/init0.s
index 903f0b07811..d7e6e1a2c60 100644
--- a/ld/testsuite/ld-elf/init0.s
+++ b/ld/testsuite/ld-elf/init0.s
@@ -7,6 +7,8 @@ _start:
__start:
.global main /* Used by HPPA targets. */
main:
+ .globl _main /* Used by LynxOS targets. */
+_main:
.dc.a 0
.section .init, "a"
diff --git a/ld/testsuite/ld-elf/linkonce1b.s b/ld/testsuite/ld-elf/linkonce1b.s
index fd45cec5408..266b4843e94 100644
--- a/ld/testsuite/ld-elf/linkonce1b.s
+++ b/ld/testsuite/ld-elf/linkonce1b.s
@@ -1,9 +1,11 @@
.globl main
+ .globl _main
.globl start
.globl _start
.globl __start
.text
main:
+_main:
start:
_start:
__start:
diff --git a/ld/testsuite/ld-elf/orphan3a.s b/ld/testsuite/ld-elf/orphan3a.s
index bc3023be34c..3131b1a157f 100644
--- a/ld/testsuite/ld-elf/orphan3a.s
+++ b/ld/testsuite/ld-elf/orphan3a.s
@@ -1,9 +1,11 @@
.globl main
+ .globl _main
.globl start
.globl _start
.globl __start
.text
main:
+_main:
start:
_start:
__start:
diff --git a/ld/testsuite/ld-elf/pr14926.s b/ld/testsuite/ld-elf/pr14926.s
index 3d132f68ddc..cd650e195eb 100644
--- a/ld/testsuite/ld-elf/pr14926.s
+++ b/ld/testsuite/ld-elf/pr14926.s
@@ -1,9 +1,11 @@
.text
.globl main
+ .globl _main
.globl start
.globl _start
.globl __start
main:
+_main:
start:
_start:
__start:
diff --git a/ld/testsuite/ld-elf/pr20513a.s b/ld/testsuite/ld-elf/pr20513a.s
index 0f54bb14ed2..bc882a9d7a2 100644
--- a/ld/testsuite/ld-elf/pr20513a.s
+++ b/ld/testsuite/ld-elf/pr20513a.s
@@ -11,4 +11,7 @@ __start:
.type main,"function"
.global main
main:
+ .type _main,"function"
+ .global _main
+_main:
.long 0
diff --git a/ld/testsuite/ld-elf/sec64k.exp b/ld/testsuite/ld-elf/sec64k.exp
index 3909c0eaa14..a36a5a35c5a 100644
--- a/ld/testsuite/ld-elf/sec64k.exp
+++ b/ld/testsuite/ld-elf/sec64k.exp
@@ -79,6 +79,8 @@ for { set i 0 } { $i < $max_sec / $secs_per_file } { incr i } {
puts $ofd "__start:"
puts $ofd " .global main"
puts $ofd "main:"
+ puts $ofd " .global _main"
+ puts $ofd "_main:"
puts $ofd " .global foo_0"
puts $ofd "foo_0: .dc.a 0"
}
diff --git a/ld/testsuite/ld-elf/start.s b/ld/testsuite/ld-elf/start.s
index d8655bef05c..4d8239479a6 100644
--- a/ld/testsuite/ld-elf/start.s
+++ b/ld/testsuite/ld-elf/start.s
@@ -7,4 +7,6 @@ _start:
__start:
.global main /* Used by HPPA targets. */
main:
+ .globl _main /* Used by LynxOS targets. */
+_main:
.dc.a 0
diff --git a/ld/testsuite/ld-elf/var1.s b/ld/testsuite/ld-elf/var1.s
index 58bc931cdaf..7fe3bcf8652 100644
--- a/ld/testsuite/ld-elf/var1.s
+++ b/ld/testsuite/ld-elf/var1.s
@@ -1,9 +1,11 @@
.globl main
+ .globl _main
.globl start
.globl _start
.globl __start
.text
main:
+_main:
start:
_start:
__start: