Files
swift-mirror/stdlib/public/runtime/SwiftRT-ELF.cpp
Michael Munday 94ffb3404b Mark swift sections as 1 byte aligned
The C compiler on some platforms (such as s390x) assumes that the
data pointed to by symbols meets certain alignment requirements.
The swift sections do not necessarily meet these alignment
requirements so this change adds alignment attributes to them to
force the compiler to emit the instruction sequences and relocations
required to address unaligned data.

This fixes a 'R_390_PC32DBL target misaligned' warning issued by
gold on s390x.
2018-05-25 11:03:44 -04:00

2.3 KiB