summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-08-07 08:02:12 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-08-07 08:02:29 -0700
commit2980ccad5958af178f80fd2a2a0fa781bf91b0aa (patch)
tree695fd3892c2d21a8d7261943dd707ec9a5c3b88a /ld/testsuite/ld-elf
parente347efc38b8b1eb6561248875c4bb2f9b074894b (diff)
downloadbinutils-gdb-2980ccad5958af178f80fd2a2a0fa781bf91b0aa.tar.gz
Move common symbol check after bed->common_definition
bfd/ * elflink.c (elf_link_add_object_symbols): Move common symbol check after bed->common_definition. ld/ * testsuite/ld-elf/pr21903.s (start): Removed. (_start): Likewise. (__start): Likewise. (main): Likewise. (bar): New.
Diffstat (limited to 'ld/testsuite/ld-elf')
-rw-r--r--ld/testsuite/ld-elf/pr21903.s12
1 files changed, 4 insertions, 8 deletions
diff --git a/ld/testsuite/ld-elf/pr21903.s b/ld/testsuite/ld-elf/pr21903.s
index 9dbf96c62e5..ce26b33f029 100644
--- a/ld/testsuite/ld-elf/pr21903.s
+++ b/ld/testsuite/ld-elf/pr21903.s
@@ -1,12 +1,8 @@
.text
- .global start /* Used by SH targets. */
-start:
- .global _start
-_start:
- .global __start
-__start:
- .global main /* Used by HPPA targets. */
-main:
+ .global bar
+bar:
+ .byte 0
+ .data
.dc.a foo
.ifdef HPUX
foo .comm 4