Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 315130c in mainline


Ignore:
Timestamp:
2017-11-01T18:17:23Z (3 years ago)
Author:
jzr <zarevucky.jiri@…>
Branches:
master
Children:
aa537a5a
Parents:
52a7f238
Message:

Strip binaries using a linker option instead of calling a separate program.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/Makefile

    r52a7f238 r315130c  
    120120        AFLAGS += --fatal-warnings
    121121endif
     122endif
     123
     124ifeq ($(CONFIG_STRIP_BINARIES),y)
     125        LFLAGS += --strip-all
    122126endif
    123127
     
    393397        $(LD) $(LFLAGS) -Map $(MAP) -o $@ $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) $(EXTRA_OBJECTS) $(SYMTAB_OBJECTS)
    394398endif
    395 ifeq ($(CONFIG_STRIP_BINARIES),y)
    396         $(STRIP) $(RAW)
    397 endif
    398399
    399400$(LINK): $(LINK).in | depend
  • uspace/Makefile.common

    r52a7f238 r315130c  
    280280endif
    281281
     282ifeq ($(CONFIG_STRIP_BINARIES),y)
     283        LFLAGS += --strip-all
     284endif
     285
    282286LIB_CFLAGS = $(CFLAGS) -fPIC
    283287LIB_LFLAGS = $(LFLAGS) -shared -soname $(LSONAME) --whole-archive
     
    303307$(BINARY): $(LINKER_SCRIPT) $(OBJECTS) $(LIBS) $(BASE_LIBS)
    304308        $(LD) -n $(LFLAGS) -T $(LINKER_SCRIPT) -M -Map $(BINARY).map -o $(BINARY) $(OBJECTS) $(LIBS) $(BASE_LIBS)
    305 ifeq ($(CONFIG_STRIP_BINARIES),y)
    306         $(STRIP) $(BINARY)
    307 endif
    308309endif
    309310
     
    332333$(TEST_OUTPUT): $(LINKER_SCRIPT) $(TEST_OBJECTS) $(TEST_OUTPUT_LIBS)
    333334        $(LD) -n $(LFLAGS) -T $(LINKER_SCRIPT) -M -Map $(TEST_OUTPUT).map -o $@ $(TEST_OBJECTS) $(TEST_OUTPUT_LIBS) $(LIBS) $(BASE_LIBS)
    334 ifeq ($(CONFIG_STRIP_BINARIES),y)
    335         $(STRIP) $(TEST_OUTPUT)
    336 endif
    337335endif
    338336
Note: See TracChangeset for help on using the changeset viewer.