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

Changeset cfdeedc in mainline for kernel/arch/mips32/Makefile.inc


Ignore:
Timestamp:
2018-10-21T23:12:23Z (3 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master
Children:
bf05c74
Parents:
d59718e
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-10-21 22:53:48)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-10-21 23:12:23)
Message:

Keep kernel in ELF format

By keeping kernel in an ELF file (instead of converting it to
a flat binary), we can use the information it contains, like
symbol table and debug info.

We can also later implement more advanced functionality, like
loading kernel at multiple discontiguous blocks, or loading
a position-independent kernel at a randomized address.

Currently the functionality is quite restricted, to keep changes
to a minimum. Code in boot/generic/src/kernel.c validates that
the kernel image was built with the same addresses as the boot
loader uses, giving an extra level of sanity checking compared
to a flat binary.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/mips32/Makefile.inc

    rd59718e rcfdeedc  
    2727#
    2828
    29 BFD_ARCH = mips
    30 BFD = binary
    3129COMMON_CFLAGS += -msoft-float -mno-abicalls -G 0 -fno-zero-initialized-in-bss -mabi=32
    3230AS_PROLOG = .module softfloat;
     
    3836
    3937ifeq ($(MACHINE),msim)
    40         BFD_NAME = elf32-tradlittlemips
    4138        ENDIANESS = LE
    4239        COMMON_CFLAGS += -march=r4000
    4340endif
    4441ifeq ($(MACHINE),bmalta)
    45         BFD_NAME = elf32-tradbigmips
    4642        ENDIANESS = BE
    4743        COMMON_CFLAGS += -D__BE__ -march=4kc
    4844endif
    4945ifeq ($(MACHINE),lmalta)
    50         BFD_NAME = elf32-tradlittlemips
    5146        ENDIANESS = LE
    5247        COMMON_CFLAGS += -march=4kc
Note: See TracChangeset for help on using the changeset viewer.