esp32s2beta: don't use crtbegin from the toolchain

Similar to 22514c1dd9 for esp32
This commit is contained in:
Ivan Grokhotkov
2019-11-21 11:44:45 +01:00
parent fdd05b7bef
commit f21261d39c

View File

@@ -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))