Changeset 67cda76 in mainline


Ignore:
Timestamp:
2017-05-04T22:25:22Z (8 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
14d5223
Parents:
f233840
Message:

make sure the architecture can set up required assembler directives for generated files (e.g. the usage of softfloat on MIPS)

Location:
kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/Makefile

    rf233840 r67cda76  
    447447
    448448$(REAL_MAP).o: $(REAL_MAP).bin
    449         echo $(SYMTAB_SECTION)" .incbin \"$<\"" | $(AS) $(AFLAGS) -o $@
     449        echo $(AS_PROLOG)$(SYMTAB_SECTION)" .incbin \"$<\"" | $(AS) $(AFLAGS) -o $@
    450450
    451451$(REAL_MAP).bin: $(LINK) $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS)
    452         echo $(SYMTAB_SECTION) | $(AS) $(AFLAGS) -o $(EMPTY_MAP)
     452        echo $(AS_PROLOG)$(SYMTAB_SECTION) | $(AS) $(AFLAGS) -o $(EMPTY_MAP)
    453453ifeq ($(CONFIG_LTO),y)
    454454        $(GCC) $(LFLAGS_LTO) -Xlinker -Map -Xlinker $(MAP_PREV) $(DEFS) $(GCC_CFLAGS) -o $@ $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) $(EXTRA_OBJECTS) $(EMPTY_MAP)
     
    462462        # on architectures that have bss after symtab
    463463       
    464         echo $(SYMTAB_SECTION)" .incbin \"$@\"" | $(AS) $(AFLAGS) -o $(SIZEOK_MAP)
     464        echo $(AS_PROLOG)$(SYMTAB_SECTION)" .incbin \"$@\"" | $(AS) $(AFLAGS) -o $(SIZEOK_MAP)
    465465ifeq ($(CONFIG_LTO),y)
    466466        $(GCC) $(LFLAGS_LTO) -Xlinker -Map -Xlinker $(MAP_PREV) $(DEFS) $(GCC_CFLAGS) -o $@ $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) $(EXTRA_OBJECTS) $(SIZEOK_MAP)
  • kernel/arch/mips32/Makefile.inc

    rf233840 r67cda76  
    3030BFD = binary
    3131GCC_CFLAGS += -msoft-float -mno-abicalls -G 0 -fno-zero-initialized-in-bss -mabi=32
     32AS_PROLOG = ".module softfloat;"
    3233
    3334BITS = 32
Note: See TracChangeset for help on using the changeset viewer.