mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-12 13:27:36 +00:00
esp32s2beta: don't use crtbegin from the toolchain
Similar to 22514c1dd9
for esp32
This commit is contained in:
@@ -267,12 +267,12 @@ SECTIONS
|
|||||||
__eh_frame = ABSOLUTE(.);
|
__eh_frame = ABSOLUTE(.);
|
||||||
KEEP(*(.eh_frame))
|
KEEP(*(.eh_frame))
|
||||||
. = (. + 7) & ~ 3;
|
. = (. + 7) & ~ 3;
|
||||||
/* C++ constructor and destructor tables, properly ordered: */
|
/* C++ constructor and destructor tables
|
||||||
|
|
||||||
|
Make a point of not including anything from crtbegin.o or crtend.o, as IDF doesn't use toolchain crt
|
||||||
|
*/
|
||||||
__init_array_start = ABSOLUTE(.);
|
__init_array_start = ABSOLUTE(.);
|
||||||
KEEP (*crtbegin.*(.ctors))
|
KEEP (*(EXCLUDE_FILE (*crtend.* *crtbegin.*) .ctors .ctors.*))
|
||||||
KEEP (*(EXCLUDE_FILE (*crtend.*) .ctors))
|
|
||||||
KEEP (*(SORT(.ctors.*)))
|
|
||||||
KEEP (*(.ctors))
|
|
||||||
__init_array_end = ABSOLUTE(.);
|
__init_array_end = ABSOLUTE(.);
|
||||||
KEEP (*crtbegin.*(.dtors))
|
KEEP (*crtbegin.*(.dtors))
|
||||||
KEEP (*(EXCLUDE_FILE (*crtend.*) .dtors))
|
KEEP (*(EXCLUDE_FILE (*crtend.*) .dtors))
|
||||||
|
Reference in New Issue
Block a user