Changeset 54146a0 in mainline


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.

Location:
uspace
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/Makefile.common

    r5d4763b r54146a0  
    4747#   STATIC_NEEDED      set to 'y' for init binaries, will build statically
    4848#                      linked version
     49#   STATIC_ONLY        set to 'y' if binary cannot be linked dynamically
     50#                      (e.g. uses thread-local variables)
    4951#
    5052# Optionally, for a libary:
     
    113115        STATIC_BUILD = y
    114116else
    115         ifeq ($(CONFIG_USE_SHARED_LIBS), y)
    116                 STATIC_BUILD = n
     117        ifeq ($(STATIC_ONLY),y)
     118                STATIC_BUILD = y
    117119        else
    118                 STATIC_BUILD = y
     120                ifeq ($(CONFIG_USE_SHARED_LIBS), y)
     121                        STATIC_BUILD = n
     122                else
     123                        STATIC_BUILD = y
     124                endif
    119125        endif
    120126endif
  • 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}
  • uspace/srv/net/tl/icmp/Makefile

    r5d4763b r54146a0  
    3232EXTRA_CFLAGS = -I$(LIBNET_PREFIX)/include
    3333BINARY = icmp
     34STATIC_ONLY = y
    3435
    3536SOURCES = \
Note: See TracChangeset for help on using the changeset viewer.