Changeset 6122db1 in mainline for libc/arch/mips32/_link.ld.in


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).

File:
1 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                *(*);
Note: See TracChangeset for help on using the changeset viewer.