mirror of
https://github.com/adtools/clib2.git
synced 2025-12-08 14:59:05 +00:00
Added simple startup code for baserel
git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14780 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: crt0.S,v 1.1.1.1 2004-07-26 16:30:22 obarthel Exp $
|
||||
// $Id: crt0.S,v 1.2 2004-11-28 12:31:27 tfrieden Exp $
|
||||
//
|
||||
// :ts=4
|
||||
//
|
||||
@ -18,5 +18,23 @@ _start:
|
||||
addi r13, r13, _SDA_BASE_@l
|
||||
#endif
|
||||
|
||||
#if defined(BASEREL_DATA)
|
||||
/* We also need to set up the data segment pointer */
|
||||
lis r2, _DATA_BASE_@ha
|
||||
addi r2, r2, _DATA_BASE_@l
|
||||
#endif
|
||||
|
||||
b _main
|
||||
|
||||
#if defined(BASEREL_DATA)
|
||||
.section .rodata
|
||||
|
||||
.globl __data_segment_descriptor
|
||||
__data_segment_descriptor:
|
||||
.long __data_start
|
||||
.long __data_end
|
||||
.long _DATA_BASE_
|
||||
|
||||
.section .dend, "wa", @nobits
|
||||
.space 4
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user