Changeset a71d9af9 in mainline for libc/arch/mips32/src/entry.s


Ignore:
Timestamp:
2006-03-24T00:51:14Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
86d05fae
Parents:
e708063
Message:

Changed MIPS to compile as PIC code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libc/arch/mips32/src/entry.s

    re708063 ra71d9af9  
    2828
    2929.text
    30 
    31 .org 0
    32 
    3330.section .init, "ax"
    34 .globl __start
     31.global __start
     32.set noreorder
     33.option pic2
    3534
    3635## User-space task entry point
     
    3938.ent __start
    4039__start:
    41         lui $28, _gp
     40        .frame $sp, 32, $31
     41        .cpload $25
    4242       
    43         # Mips o32 may store its arguments on stack, make space,
     43       
     44        # Mips o32 may store its arguments on stack, make space (16 bytes),
    4445        # so that it could work with -O0
    45         addiu $sp, -16
     46        # Make space additional 16 bytes for the stack frame
     47
     48        addiu $sp, -32
     49        .cprestore 16   # Allow PIC code
    4650       
    4751        jal __main
     52        nop
    4853       
    4954        jal main
     55        nop
    5056       
    5157        jal __exit
     58        nop
    5259       
    5360.end __start
     61
     62# Alignment of output section data to 0x4000
     63.section .data
     64.align 14
Note: See TracChangeset for help on using the changeset viewer.