mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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.
2.3 KiB
2.3 KiB