]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/link: remove zdebug from ELF section header table
authorCherry Mui <cherryyz@google.com>
Thu, 4 May 2023 21:11:46 +0000 (17:11 -0400)
committerCherry Mui <cherryyz@google.com>
Fri, 5 May 2023 19:20:27 +0000 (19:20 +0000)
We now use SHF_COMPRESSED sections for DWARF compression, and no
longer generate zdebug sections on ELF platforms. No need to
generate them in the section header string table.

Updates #50796.

Change-Id: I5c79ccd43f803c75dbd86e28195d0db1c0beb087
Reviewed-on: https://go-review.googlesource.com/c/go/+/492719
Reviewed-by: Than McIntosh <thanm@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>

src/cmd/link/internal/ld/dwarf.go

index d060dda54d800f5ac7a18ba5410aafa36b79d40b..b42da6dc0b478e44972414c8b993b143e88d0a3f 100644 (file)
@@ -2159,8 +2159,6 @@ func dwarfaddshstrings(ctxt *Link, add func(string)) {
                add(".debug_" + sec)
                if ctxt.IsExternal() {
                        add(elfRelType + ".debug_" + sec)
-               } else {
-                       add(".zdebug_" + sec)
                }
        }
 }