Skip to content

Commit eae426e

Browse files
authored
Merge pull request #8485 from tannewt/update_gcc12.3
Switch to gcc 12.3 for arm32
2 parents fce45af + 48f4b0f commit eae426e

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

.github/actions/deps/external/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ runs:
2525
inputs.port != 'espressif'
2626
uses: carlosperate/arm-none-eabi-gcc-action@v1
2727
with:
28-
release: '10-2020-q4'
28+
release: '12.3.Rel1'
2929

3030
# espressif
3131
- name: Get espressif toolchain

ports/atmel-samd/boards/common.template.ld

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ SECTIONS
6767
The program executes knowing that the data is in the RAM
6868
but the loader puts the initial values in the FLASH_FIRMWARE (inidata).
6969
It is one task of the startup to copy the initial values from FLASH_FIRMWARE to RAM. */
70-
.data : AT ( _sidata )
70+
.data :
7171
{
7272
. = ALIGN(4);
7373
_srelocate = .; /* create a global symbol at data start; used by startup code in order to initialize the .data section in RAM */
@@ -78,7 +78,7 @@ SECTIONS
7878

7979
. = ALIGN(4);
8080
_erelocate = .; /* define a global symbol at data end; used by startup code in order to initialize the .data section in RAM */
81-
} >RAM
81+
} >RAM AT> FLASH_FIRMWARE
8282

8383
/* Uninitialized data section */
8484
.bss (NOLOAD) :
@@ -96,7 +96,7 @@ SECTIONS
9696
} >RAM
9797

9898
/* this just checks there is enough RAM for the requested stack. */
99-
.stack :
99+
.stack (NOLOAD) :
100100
{
101101
. = ALIGN(4);
102102
. = . + ${CIRCUITPY_DEFAULT_STACK_SIZE};

ports/broadcom/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ else
148148
$(BUILD)/kernel$(SUFFIX).elf: $(OBJ)
149149
$(STEPECHO) "LINK $@"
150150
$(Q)echo $(OBJ) > $(BUILD)/firmware.objs
151-
$(Q)$(CC) -o $@ $(LDFLAGS) @$(BUILD)/firmware.objs -Wl,--start-group $(LIBS) -Wl,--end-group
151+
$(Q)$(CC) -o $@ $(LDFLAGS) @$(BUILD)/firmware.objs -Wl,--print-memory-usage -Wl,--start-group $(LIBS) -Wl,--end-group
152152
endif
153153

154154
$(BUILD)/kernel$(SUFFIX).img: $(BUILD)/kernel$(SUFFIX).elf

ports/espressif/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ esp-idf-stamp: $(BUILD)/esp-idf/config/sdkconfig.h
569569

570570
$(BUILD)/firmware.elf: $(OBJ) | esp-idf-stamp $(IDF_CMAKE_TARGETS)
571571
$(STEPECHO) "LINK $@"
572-
$(Q)$(CC) -o $@ $(LDFLAGS) $^ -Wl,--start-group $(ESP_IDF_COMPONENTS_EXPANDED) $(BINARY_BLOBS) $(MBEDTLS_COMPONENTS_LINK_EXPANDED) $(LIBS) -Wl,--end-group -u newlib_include_pthread_impl -u ld_include_highint_hdl -u __cxx_fatal_exception
572+
$(Q)$(CC) -o $@ $(LDFLAGS) $^ -Wl,--print-memory-usage -Wl,--start-group $(ESP_IDF_COMPONENTS_EXPANDED) $(BINARY_BLOBS) $(MBEDTLS_COMPONENTS_LINK_EXPANDED) $(LIBS) -Wl,--end-group -u newlib_include_pthread_impl -u ld_include_highint_hdl -u __cxx_fatal_exception
573573

574574
$(BUILD)/circuitpython-firmware.bin: $(BUILD)/firmware.elf | tools/build_memory_info.py
575575
$(STEPECHO) "Create $@"

ports/litex/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ $(BUILD)/firmware.elf: invalid-board
138138
else
139139
$(BUILD)/firmware.elf: $(OBJ)
140140
$(STEPECHO) "LINK $@"
141-
$(Q)$(CC) -o $@ $(LDFLAGS) $^ -Wl,--start-group $(LIBS) -Wl,--end-group
141+
$(Q)$(CC) -o $@ $(LDFLAGS) $^ -Wl,--print-memory-usage -Wl,--start-group $(LIBS) -Wl,--end-group
142142
$(Q)$(SIZE) $@ | $(PYTHON) $(TOP)/tools/build_memory_info.py $(LD_FILE) $(BUILD)
143143
endif
144144

ports/nrf/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ else
214214
$(BUILD)/firmware.elf: $(OBJ) $(GENERATED_LD_FILE)
215215
$(STEPECHO) "LINK $@"
216216
$(Q)echo $(OBJ) > $(BUILD)/firmware.objs
217-
$(Q)$(CC) -o $@ $(LDFLAGS) @$(BUILD)/firmware.objs -Wl,--start-group $(LIBS) -Wl,--end-group
217+
$(Q)$(CC) -o $@ $(LDFLAGS) @$(BUILD)/firmware.objs -Wl,--print-memory-usage -Wl,--start-group $(LIBS) -Wl,--end-group
218218
$(Q)$(SIZE) $@ | $(PYTHON) $(TOP)/tools/build_memory_info.py $(GENERATED_LD_FILE) $(BUILD)
219219
endif
220220

ports/silabs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ $(SILABS_BUILD)/$(PROJECTNAME).Makefile: | $(HEADER_BUILD)/mpversion.h
144144
$(OUTPUT_DIR)/firmware.out: $(SILABS_BUILD)/pin_functions.h $(SILABS_BUILD)/pins.c $(OBJ) $(OBJS) $(LIB_FILES)
145145
$(STEPECHO) 'Linking $(OUTPUT_DIR)/firmware.out'
146146
$(Q)echo "$(OBJS) $(OBJ)" > $(OUTPUT_DIR)/linker_objs
147-
$(Q)$(CC) $(LD_FLAGS) @$(OUTPUT_DIR)/linker_objs $(LIBS) -o $(OUTPUT_DIR)/firmware.out
147+
$(Q)$(CC) $(LD_FLAGS) @$(OUTPUT_DIR)/linker_objs -Wl,--print-memory-usage $(LIBS) -o $(OUTPUT_DIR)/firmware.out
148148
$(Q)$(OBJCOPY) $(OUTPUT_DIR)/firmware.out -O binary $(OUTPUT_DIR)/firmware.bin
149149

150150
flash: $(OUTPUT_DIR)/firmware.bin

ports/stm/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ else
270270
$(BUILD)/firmware.elf: $(OBJ)
271271
$(STEPECHO) "LINK $@"
272272
$(Q)echo $^ > $(BUILD)/firmware.objs
273-
$(Q)$(CC) -o $@ $(LDFLAGS) @$(BUILD)/firmware.objs -Wl,--start-group $(LIBS) -Wl,--end-group
273+
$(Q)$(CC) -o $@ $(LDFLAGS) @$(BUILD)/firmware.objs -Wl,--print-memory-usage -Wl,--start-group $(LIBS) -Wl,--end-group
274274
$(Q)$(SIZE) $@ | $(PYTHON) $(TOP)/tools/build_memory_info.py $(LD_FILE) $(BUILD)
275275
endif
276276

0 commit comments

Comments
 (0)