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).
Paths
| Differential D107610
[AVR][clang] Pass '-fno-use-init-array' to cc1 ClosedPublic Authored by mhjacobson on Aug 5 2021, 4:05 PM.
Details Summary 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
Event TimelineThis revision is now accepted and ready to land.Aug 5 2021, 4:47 PM Closed by commit rGdae7adda9499: [AVR][clang] Pass '-fno-use-init-array' to cc1 as default (authored by mhjacobson, committed by benshi001). · Explain WhyAug 5 2021, 7:14 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 364644 clang/lib/Driver/ToolChains/AVR.h
clang/lib/Driver/ToolChains/AVR.cpp
clang/test/Driver/avr-toolchain.c
|