のねのBlog

パソコンやソフト開発で起きた問題など書きます。よろしくお願いします。

CooCox Don't use standard system startup filesスイッチの有無のときの差のマップファイル

f:id:none53:20160513114059p:plain

無効のとき(Startup Filesを使うとき)と、有効のときの差のマップファイル


その1:

Discarded input sections
Discarded input sections

 .text          0x00000000        0x0 /lib/gcc/arm-none-eabi/4.8.1/thumb2/crti.o
 .data          0x00000000        0x0 /lib/gcc/arm-none-eabi/4.8.1/thumb2/crti.o
 .bss           0x00000000        0x0 /lib/gcc/arm-none-eabi/4.8.1/thumb2/crti.o
 .data          0x00000000        0x4 /lib/gcc/arm-none-eabi/4.8.1/thumb2/crtbegin.o


その2:

なし
.text          0x00000000        0x0 /lib/gcc/arm-none-eabi/4.8.1/thumb2/crtend.o
 .data          0x00000000        0x0 /lib/gcc/arm-none-eabi/4.8.1/thumb2/crtend.o
 .bss           0x00000000        0x0 /lib/gcc/arm-none-eabi/4.8.1/thumb2/crtend.o
 .eh_frame      0x00000000        0x4 /lib/gcc/arm-none-eabi/4.8.1/thumb2/crtend.o
 .text          0x00000000        0x0 /lib/gcc/arm-none-eabi/4.8.1/thumb2/crtn.o
 .data          0x00000000        0x0 /lib/gcc/arm-none-eabi/4.8.1/thumb2/crtn.o
 .bss           0x00000000        0x0 /lib/gcc/arm-none-eabi/4.8.1/thumb2/crtn.o


その3

Linker script and memory map

                0x20030000                _eram = 0x20030000

.text
 *(.isr_vector)
 *(.text*)
 *(.init)
 *(.fini)
 *crtbegin.o(.ctors)
 *crtbegin?.o(.ctors)
 *(EXCLUDE_FILE(*crtend.o *crtend?.o) .ctors)
 *(SORT(.ctors.*))
 *(.ctors)
 *crtbegin.o(.dtors)
 *crtbegin?.o(.dtors)
 *(EXCLUDE_FILE(*crtend.o *crtend?.o) .dtors)
 *(SORT(.dtors.*))
 *(.dtors)
 *(.rodata*)
 *(.eh_fram e*)
Linker script and memory map

LOAD /lib/gcc/arm-none-eabi/4.8.1/thumb2/crti.o
LOAD /lib/gcc/arm-none-eabi/4.8.1/thumb2/crtbegin.o
                0x20030000                _eram = 0x20030000

.text           0x20000000       0xe0
 *(.isr_vector)
 *(.text*)
 .text          0x20000000       0xc8 /lib/gcc/arm-none-eabi/4.8.1/thumb2/crtbegin.o
 *(.init)
 .init          0x200000c8        0x4 /lib/gcc/arm-none-eabi/4.8.1/thumb2/crti.o
                0x200000c8                _init
 .init          0x200000cc        0x8 /lib/gcc/arm-none-eabi/4.8.1/thumb2/crtn.o
 *(.fini)
 .fini          0x200000d4        0x4 /lib/gcc/arm-none-eabi/4.8.1/thumb2/crti.o
                0x200000d4                _fini
 .fini          0x200000d8        0x8 /lib/gcc/arm-none-eabi/4.8.1/thumb2/crtn.o
 *crtbegin.o(.ctors)
 *crtbegin?.o(.ctors)
 *(EXCLUDE_FILE(*crtend.o *crtend?.o) .ctors)
 *(SORT(.ctors.*))
 *(.ctors)
 *crtbegin.o(.dtors)
 *crtbegin?.o(.dtors)
 *(EXCLUDE_FILE(*crtend.o *crtend?.o) .dtors)
 *(SORT(.dtors.*))
 *(.dtors)
 *(.rodata*)
 *(.eh_fram e*)