Changeset 54146a0 in mainline for uspace/lib/c/arch/ia32/_link.ld.in


Ignore:
Timestamp:
2011-05-01T11:45:50Z (13 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d2a6a04b
Parents:
5d4763b
Message:

Add missing sections to ia32 linker script. Now we discard debugging sections
from shared libs and dynamically linked executables.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/arch/ia32/_link.ld.in

    r5d4763b r54146a0  
    55
    66PHDRS {
    7 #if defined(LOADER)
     7#if defined(LOADER) || defined(DLEXE)
    88        interp PT_INTERP;
    99        text PT_LOAD FILEHDR PHDRS FLAGS(5);
    10 #elif defined(DLEXE)
    11         interp PT_INTERP;
    12         text PT_LOAD FLAGS(5);
    1310#else
    1411        text PT_LOAD FLAGS(5);
     
    6461                *(.dynstr);
    6562        } :text
     63       
     64        .hash : {
     65                *(.hash);
     66        } :text
    6667#endif
    6768        . = . + 0x1000;
     
    7980#if defined(SHLIB) || defined(DLEXE)
    8081        .data.rel : {
    81                 *(.data.rel);
     82                *(.data.rel .data.rel.*);
    8283        } :data
    8384
     
    105106       
    106107        .bss : {
     108                *(.dynbss);
    107109                *(COMMON);
    108110                *(.bss);
     
    122124#endif
    123125       
    124 #if defined(SHLIB)
    125 #elif defined(DLEXE)
    126         /DISCARD/ : {
    127                 *(.comment);
    128         }
    129 #else
    130126        /DISCARD/ : {
    131127                *(*);
    132128        }
    133 #endif
    134129}
Note: See TracChangeset for help on using the changeset viewer.