We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent feb2e2a commit cfbc7e7Copy full SHA for cfbc7e7
source/backends/x86_64.d
@@ -202,7 +202,6 @@ class BackendX86_64 : CompilerBackend {
202
203
if (os == "osx") {
204
linkCommand ~= " -platform_version macos 10.6 `xcrun --sdk macosx --show-sdk-version`";
205
- linkCommand ~= " -ld_classic -no_pie -e _main";
206
linkCommand ~= " -lSystem -syslibroot `xcrun --sdk macosx --show-sdk-path`";
207
}
208
@@ -497,7 +496,7 @@ class BackendX86_64 : CompilerBackend {
497
496
498
499
// create array source
500
- output ~= format("%ssection .text\n", useGas? "." : "");
+ output ~= format("%ssection .rodata\n", useGas? "." : "");
501
foreach (i, ref array ; arrays) {
502
output ~= format("__array_src_%d: ", i);
503
0 commit comments