mirror of
https://github.com/vsariola/sointu.git
synced 2025-06-04 01:28:45 -04:00
fix(compiler): fix bss section macros on linux
This commit is contained in:
parent
1187c2a200
commit
f88a74e44a
@ -210,7 +210,7 @@ func (p *X86Macros) SectData(name string) string {
|
|||||||
if !p.DisableSections {
|
if !p.DisableSections {
|
||||||
return fmt.Sprintf("section .data.%v progbits alloc noexec write align=1", name)
|
return fmt.Sprintf("section .data.%v progbits alloc noexec write align=1", name)
|
||||||
}
|
}
|
||||||
return "section .data. progbits alloc exec nowrite align=1"
|
return "section .data progbits alloc exec nowrite align=1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -219,13 +219,12 @@ func (p *X86Macros) SectBss(name string) string {
|
|||||||
if p.OS == "windows" && !p.DisableSections {
|
if p.OS == "windows" && !p.DisableSections {
|
||||||
return fmt.Sprintf("section .%v bss align=256", name)
|
return fmt.Sprintf("section .%v bss align=256", name)
|
||||||
}
|
}
|
||||||
return "section .bss align=256"
|
|
||||||
} else {
|
} else {
|
||||||
if !p.DisableSections {
|
if !p.DisableSections {
|
||||||
return fmt.Sprintf("section .bss.%v progbits alloc noexec write align=256", name)
|
return fmt.Sprintf("section .bss.%v nobits alloc noexec write align=256", name)
|
||||||
}
|
}
|
||||||
return "section .bss. progbits alloc exec nowrite align=256"
|
|
||||||
}
|
}
|
||||||
|
return "section .bss align=256"
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *X86Macros) Data(label string) string {
|
func (p *X86Macros) Data(label string) string {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user