~mirabilos/dietlibc/MAIN

« back to all changes in this revision

Viewing changes to s390x/start.S

  • Committer: leitner
  • Date: 2018-12-11 15:16:38 UTC
  • Revision ID: leitner-20181211151638-k3ul70v24lhccbjc
get exceptions and ctors/dtors to work

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
.text
4
4
.global _start
5
5
_start:
6
 
#ifdef WANT_DYNAMIC
 
6
#ifdef WANT_CTOR
7
7
        lgr     %r5,%r14                /* save dynamic ld.so _fini */
8
8
#endif
9
9
        lg      %r2,0(%r15)             /* argc */
27
27
        stg     %r4,0(%r13)
28
28
 
29
29
/* call main or _dyn_start */
30
 
#ifdef WANT_DYNAMIC
31
 
        brasl   %r14,_dyn_start
32
 
#else
33
30
        brasl   %r14,CALL_IN_STARTCODE
34
 
#endif
35
31
 
36
32
/* call exit */
37
33
        brasl   %r14,exit
42
38
.align 4
43
39
.Lstart:
44
40
        .size   _start,.Lstart-_start
 
41
 
 
42
.section .ctors,"aw"
 
43
.global __CTOR_LIST__
 
44
__CTOR_LIST__:
 
45
 
 
46
.section .dtors,"aw"
 
47
.global __DTOR_LIST__
 
48
__DTOR_LIST__:
 
49
 
 
50
.section .eh_frame,"aw"
 
51
.global __EH_FRAME_BEGIN__
 
52
__EH_FRAME_BEGIN__: