[Mips] Set default executable entry symbol name for MIPS targets. On

MIPS the entry symbol name is '__start' instead of '_start'.

llvm-svn: 199235
This commit is contained in:
Simon Atanasyan 2014-01-14 18:19:19 +00:00
parent 663aa62863
commit acb301fab1
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
# Check name of executable entry symbol.
# RUN: llvm-mc -triple=mipsel -filetype=obj -o=%t1 %s
# RUN: lld -flavor gnu -target mipsel --noinhibit-exec -o %t2 %t1
# RUN: llvm-objdump -t %t2 | FileCheck %s
# CHECK: SYMBOL TABLE:
# CHECK: 00400134 g F .text 00000004 main
# CHECK: 00000000 *UND* 00000000 __start
.global main
.ent main
main:
nop
.end main