Changeset 1cc2974 in mainline for uspace


Ignore:
Timestamp:
2008-05-26T18:56:34Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5a55ae6
Parents:
fa832eb
Message:

Improve linking and loading of boot ELF images.
(Contributed by Jiri Svoboda)

Location:
uspace/lib/libc/arch
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/arch/amd64/_link.ld.in

    rfa832eb r1cc2974  
    88
    99SECTIONS {
    10         . = 0x1000;
     10        . = 0x1000 + SIZEOF_HEADERS;
    1111       
    12         .init ALIGN(0x1000) : SUBALIGN(0x1000) {
     12        .init : {
    1313                *(.init);
    1414        } :text
     
    1717                *(.rodata*);
    1818        } :text
    19        
    20         .data ALIGN(0x1000) : SUBALIGN(0x1000) {
     19
     20        . = . + 0x1000;
     21
     22        .data : {
    2123                *(.data);
    2224        } :data
  • uspace/lib/libc/arch/arm32/_link.ld.in

    rfa832eb r1cc2974  
    88
    99SECTIONS {
    10         . = 0x1000;
     10        . = 0x1000 + SIZEOF_HEADERS;
    1111
    12         .init ALIGN(0x1000): SUBALIGN(0x1000) {
     12        .init : {
    1313                *(.init);
    1414        } : text
     
    1717        *(.rodata*);
    1818        } :text
    19        
    20         .data ALIGN(0x1000) : SUBALIGN(0x1000) {
     19
     20        . = . + 0x1000;
     21
     22        .data : {
    2123                *(.opd);
    2224                *(.data .data.*);
  • uspace/lib/libc/arch/ia32/_link.ld.in

    rfa832eb r1cc2974  
    88
    99SECTIONS {
    10         . = 0x1000;
     10        . = 0x1000 + SIZEOF_HEADERS;
    1111
    12         .init ALIGN(0x1000) : SUBALIGN(0x1000) {
     12        .init : {
    1313                *(.init);
    1414        } :text
     
    1717                *(.rodata*);
    1818        } :text
    19        
    20         .data ALIGN(0x1000) : SUBALIGN(0x1000) {
     19
     20        . = . + 0x1000;
     21
     22        .data : {
    2123                *(.data);
    2224        } :data
  • uspace/lib/libc/arch/ia64/_link.ld.in

    rfa832eb r1cc2974  
    88
    99SECTIONS {
    10         . = 0x4000;
     10        . = 0x4000 + SIZEOF_HEADERS;
    1111
    12         .init ALIGN(0x4000): SUBALIGN(0x4000) {
     12        .init : {
    1313                *(.init);
    1414        } : text
     
    1818        } :text
    1919
    20         .got ALIGN(0x4000) : SUBALIGN(0x4000) {
     20        . = . + 0x4000;
     21
     22        .got : {
    2123                _gp = .;
    2224                *(.got*);
  • uspace/lib/libc/arch/mips32/_link.ld.in

    rfa832eb r1cc2974  
    88
    99SECTIONS {
    10         . = 0x4000;
     10        . = 0x4000 + SIZEOF_HEADERS;
    1111       
    12         .init ALIGN(0x4000) : SUBALIGN(0x4000) {
     12        .init : {
    1313                *(.init);
    1414        } :text
     
    1717                *(.rodata*);
    1818        } :text
     19
     20        . = . + 0x4000;
    1921
    2022        .data : {
  • uspace/lib/libc/arch/ppc32/_link.ld.in

    rfa832eb r1cc2974  
    88
    99SECTIONS {
    10         . = 0x1000;
     10        . = 0x1000 + SIZEOF_HEADERS;
    1111
    12         .init ALIGN(0x1000) : SUBALIGN(0x1000) {
     12        .init : {
    1313                *(.init);
    1414        } :text
     
    1717                *(.rodata*);
    1818        } :text
    19        
    20         .data ALIGN(0x1000) : SUBALIGN(0x1000) {
     19
     20        . = . + 0x1000;
     21
     22        .data : {
    2123                *(.data);
    2224                *(.sdata);
  • uspace/lib/libc/arch/ppc64/_link.ld.in

    rfa832eb r1cc2974  
    88
    99SECTIONS {
    10         . = 0x1000;
     10        . = 0x1000 + SIZEOF_HEADERS;
    1111
    12         .init ALIGN(0x1000) : SUBALIGN(0x1000) {
     12        .init : {
    1313                *(.init);
    1414        } :text
     
    1818                *(.rodata*);
    1919        } :text
    20        
    21         .data ALIGN(0x1000) : SUBALIGN(0x1000) {
     20
     21        . = . + 0x1000;
     22
     23        .data : {
    2224                *(.opd);
    2325                *(.data*);
  • uspace/lib/libc/arch/sparc64/_link.ld.in

    rfa832eb r1cc2974  
    88
    99SECTIONS {
    10         . = 0x4000;
     10        . = 0x4000 + SIZEOF_HEADERS;
    1111
    12         .init ALIGN(0x4000) : SUBALIGN(0x4000) {
     12        .init : {
    1313                *(.init);
    1414        } :text
     
    1717                *(.rodata*);
    1818        } :text
    19        
    20         .got ALIGN(0x4000) : SUBALIGN(0x4000) {
     19
     20        . = . + 0x4000;
     21
     22        .got : {
    2123                 _gp = .;
    2224                 *(.got*);
    2325        } :data
    24         .data ALIGN(0x4000) : SUBALIGN(0x4000) {
     26        .data : {
    2527                *(.data);
    2628                *(.sdata);
Note: See TracChangeset for help on using the changeset viewer.