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 500293d commit 83515dfCopy full SHA for 83515df
src/cmd/link/internal/ld/dwarf.go
@@ -1951,7 +1951,7 @@ func dwarfaddelfsectionsyms(ctxt *Link) {
1951
// relocations are applied. After this, dwarfp will contain a
1952
// different (new) set of symbols, and sections may have been replaced.
1953
func dwarfcompress(ctxt *Link) {
1954
- if !ctxt.IsELF || ctxt.LinkMode == LinkExternal {
+ if !(ctxt.IsELF || ctxt.HeadType == objabi.Hwindows) || ctxt.LinkMode == LinkExternal {
1955
return
1956
}
1957
@@ -1998,6 +1998,10 @@ func dwarfcompress(ctxt *Link) {
1998
log.Fatalf("%s: unexpected sub-symbols", s)
1999
2000
pos += uint64(s.Size)
2001
+ if ctxt.HeadType == objabi.Hwindows {
2002
+ pos = uint64(Rnd(int64(pos), PEFILEALIGN))
2003
+ }
2004
+
2005
2006
Segdwarf.Length = pos - Segdwarf.Vaddr
2007
0 commit comments