Skip to content

Commit acf221c

Browse files
committed
Mark start/stop sections as SHF_GNU_RETAIN
Fixes swiftlang/swift-package-manager#5698
1 parent 8e0278a commit acf221c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/runtime/SwiftRT-ELF.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ extern "C" const char __dso_handle[];
2323
// the linker table section was never constructed.
2424

2525
#define DECLARE_SWIFT_SECTION(name) \
26-
__asm__("\t.section " #name ",\"a\"\n"); \
26+
__asm__("\t.section " #name ",\"aR\"\n"); \
2727
__attribute__((__visibility__("hidden"),__aligned__(1))) extern const char __start_##name; \
2828
__attribute__((__visibility__("hidden"),__aligned__(1))) extern const char __stop_##name;
2929

0 commit comments

Comments
 (0)