MB3hel / AUVControlBoard

Vectored 6-DOF motion controller for AUVs.
https://mb3hel.github.io/AUVControlBoard/
2 stars 2 forks source link

SAMD51 Linker Script Missing bss start and end defines #2

Closed MB3hel closed 1 year ago

MB3hel commented 2 years ago

Summary:

Versions Tested:

Versions Impacted:

Details: If compiling without --gc-sections, things need __bss_start__ and __bss_end__ defined in linker script.

Importer should patch samd51 script to add these in bss section.

/* .bss section which is used for uninitialized data */
    .bss (NOLOAD) :
    {
        . = ALIGN(4);
        _sbss = . ;
        _szero = .;
        __bss_start__ = .;
        *(.bss .bss.*)
        *(COMMON)
        . = ALIGN(4);
        _ebss = . ;
        _ezero = .;
        __bss_end__ = .;
    } > ram
MB3hel commented 1 year ago

Fixed in 4e7a249ff5a6e4a74c256cb206a6387f0039ea38