Skip to content

Commit 92fe204

Browse files
authored
Merge pull request swiftlang#23847 from compnerd/forceful-alignment
2 parents d704a7a + d845e7b commit 92fe204

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/public/runtime/SwiftRT-COFF.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,12 @@
2727
#define DECLARE_SWIFT_SECTION(name) \
2828
PRAGMA(section("." #name "$A", long, read)) \
2929
__declspec(allocate("." #name "$A")) \
30+
__declspec(align(1)) \
3031
static uintptr_t __start_##name = 0; \
3132
\
3233
PRAGMA(section("." #name "$C", long, read)) \
3334
__declspec(allocate("." #name "$C")) \
35+
__declspec(align(1)) \
3436
static uintptr_t __stop_##name = 0;
3537

3638
extern "C" {

0 commit comments

Comments
 (0)