Skip to content

Commit 84d6a68

Browse files
authored
Merge pull request swiftlang#2460 from linux-on-ibm-z/rodata-fix
Place read-only data symbols in the .rodata section.
2 parents 4c3e623 + 8b9fc29 commit 84d6a68

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

CoreFoundation/String.subproj/CFCharacterSetData.S

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99

1010
#include <CoreFoundation/CFAsmMacros.h>
1111

12+
#if defined(__ELF__)
13+
.section .rodata
14+
#endif
15+
1216
.global _C_LABEL(__CFCharacterSetBitmapData)
1317
_C_LABEL(__CFCharacterSetBitmapData):
1418
.incbin CF_CHARACTERSET_BITMAP

CoreFoundation/String.subproj/CFUniCharPropertyDatabase.S

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99

1010
#include <CoreFoundation/CFAsmMacros.h>
1111

12+
#if defined(__ELF__)
13+
.section .rodata
14+
#endif
15+
1216
.global _C_LABEL(__CFUniCharPropertyDatabase)
1317
_C_LABEL(__CFUniCharPropertyDatabase):
1418
.incbin CF_CHARACTERSET_UNICHAR_DB

CoreFoundation/String.subproj/CFUnicodeData.S

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99

1010
#include <CoreFoundation/CFAsmMacros.h>
1111

12+
#if defined(__ELF__)
13+
.section .rodata
14+
#endif
15+
1216
#if defined(__BIG_ENDIAN__)
1317
.global _C_LABEL(__CFUnicodeDataB)
1418
_C_LABEL(__CFUnicodeDataB):

0 commit comments

Comments
 (0)