Skip to content

Conversation

@dlech
Copy link
Member

@dlech dlech commented Jul 5, 2025

Just a little 🧹

dlech added 4 commits July 5, 2025 16:24
This source file for startup.o is empty, so this does nothing. Also, in
this script, we use ENTRY() to determine the entry point, so we don't
need to do anything special for the first section in RAM.
We already have a .noinit section, so we can drop all of the other
named NOLOAD sections and just use that one.
The start.S script is already reserving 2.8M for the stack via:

        .set  UND_STACK_SIZE, 0x50000
        .set  ABT_STACK_SIZE, 0x50000
        .set  FIQ_STACK_SIZE, 0xF0000
        .set  IRQ_STACK_SIZE, 0xF0000
        .set  SVC_STACK_SIZE, 0x50000

And expects a bit more for the main stack. 64K was not nearly enough
to cover this. 4M should be more than enough.
This file is empty because we need a .S file for startup on EV3 instead
of a .s file. So we can add a conditional to the makefile to to not
compile this file on the EV3.
@coveralls
Copy link

Coverage Status

coverage: 57.076% (-0.02%) from 57.091%
when pulling 01c2fea on dlech:ev3-linker-cleanup
into 77c2da2 on pybricks:master.

@dlech dlech merged commit 52a2c62 into pybricks:master Jul 5, 2025
17 checks passed
@dlech dlech deleted the ev3-linker-cleanup branch July 5, 2025 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants