There was an error while loading. Please reload this page.
1 parent 7b6b1de commit d73cc72Copy full SHA for d73cc72
1 file changed
compiler/src/dmd/backend/machobj.d
@@ -972,7 +972,7 @@ void MachObj_term(const(char)[] objfilename)
972
else if (s.Sfl == FL.unde || // special case for __chkstk_darwin, need to research what PAGEOFF12 really means
973
s.Sfl == FL.extern_ ||
974
(s.Sclass == SC.extern_ && s.Sfl == FL.func) ||
975
- (s.Sclass == SC.static_ && s.Sfl == FL.data) ||
+ //(s.Sclass == SC.static_ && s.Sfl == FL.data) ||
976
s.Sfl == FL.tlsdata)
977
{
978
rel.r_type = r.rtype == REL.add ? ARM64_RELOC_GOT_LOAD_PAGEOFF12 : ARM64_RELOC_GOT_LOAD_PAGE21;
@@ -1584,6 +1584,8 @@ static if (1)
1584
1585
ubyte remap(uint seg)
1586
1587
+ if (!machobj.AArch64)
1588
+ return cast(ubyte)seg;
1589
foreach (i; 0 .. table.length)
1590
1591
if (table[i] == seg)
0 commit comments