Changeset a3aa1e1 in mainline for libc/arch/ia32/_link.ld.in


Ignore:
Timestamp:
2006-03-13T12:29:56Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b419162
Parents:
8f9239e
Message:

Unify init linker scripts to contain two properly aligned and properly flagged segments.

File:
1 edited

Legend:

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

    r8f9239e ra3aa1e1  
    33
    44PHDRS {
    5         image PT_LOAD AT (0x1000);
     5        text PT_LOAD FLAGS(5);
     6        data PT_LOAD FLAGS(6);
    67}
    78
    89SECTIONS {
     10        . = 0x1000;
     11
     12        .init ALIGN(0x1000) : SUBALIGN(0x1000) {
     13                *(.init);
     14        } :text
     15        .text : {
     16                *(.text);
     17                *(.rodata*);
     18        } :text
    919       
    10         . = 0x1000;
    11         .image 0x00001000 : {
    12                 *(.text);
    13                 *(.data);                       /* initialized data */
    14                 *(.rodata*);                    /* string literals */
    15                 *(COMMON);                      /* global variables */
    16                 *(.bss);                        /* uninitialized static variables */
    17         } :image
     20        .data ALIGN(0x1000) : SUBALIGN(0x1000) {
     21                *(.data);
     22        } :data
     23        .bss : {
     24                *(COMMON);
     25                *(.bss);
     26        } :data
    1827       
    1928        /DISCARD/ : {
    20                 *(.note.GNU-stack);
    21                 *(.comment);
     29                *(*);
    2230        }
    2331
Note: See TracChangeset for help on using the changeset viewer.