On AVR, .ctors is used, not .init_array. Make this the default unless specifically overridden by driver argument.
This matches gcc, and it matches the behavior in (e.g.) the NetBSD driver (for certain OS variants).
Differential D107610
[AVR][clang] Pass '-fno-use-init-array' to cc1 mhjacobson on Aug 5 2021, 4:05 PM. Authored by
Details On AVR, .ctors is used, not .init_array. Make this the default unless specifically overridden by driver argument. This matches gcc, and it matches the behavior in (e.g.) the NetBSD driver (for certain OS variants).
Diff Detail
|