Changeset 6122db1 in mainline


Ignore:
Timestamp:
2006-03-22T22:16:31Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7e2988c
Parents:
07824fd
Message:

Fix mips32 linker script.
Add .scommon input section.
Add .got section and define _gp symbol.
Use this symbol to initialize gp register (r28).

Location:
libc/arch/mips32
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • libc/arch/mips32/_link.ld.in

    r07824fd r6122db1  
    1717                *(.rodata*);
    1818        } :text
    19        
    20         .data ALIGN(0x4000) : SUBALIGN(0x4000) {
     19
     20        .got ALIGN(0x4000) : SUBALIGN(0x4000) {
     21                _gp = .;
     22                *(.got);
     23        } :data
     24        .data : {
    2125                *(.data);
    2226        } :data
     27        .sbss : {
     28                *(.scommon);
     29                *(.sbss);
     30        }       
    2331        .bss : {
    2432                *(.bss);
    25                 *(.sbss);
    2633                *(COMMON);
    2734                _heap = .;
    2835                LONG(0xdeadbeef);
    2936        } :data
    30        
     37
    3138        /DISCARD/ : {
    3239                *(*);
  • libc/arch/mips32/src/entry.s

    r07824fd r6122db1  
    3838#
    3939__entry:
     40        lui $28, _gp
    4041
    4142        jal main
  • libc/arch/mips32/src/thread_entry.s

    r07824fd r6122db1  
    3939#
    4040__thread_entry:
     41        lui $28, _gp
     42
    4143        #
    4244        # v0 contains address of uarg.
Note: See TracChangeset for help on using the changeset viewer.