From: Cherry Mui Date: Thu, 4 May 2023 21:11:46 +0000 (-0400) Subject: cmd/link: remove zdebug from ELF section header table X-Git-Tag: go1.21rc1~656 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=75136fc14c0d3ec64a2f6728e96fc86066d853c9;p=gostls13.git cmd/link: remove zdebug from ELF section header table 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 Run-TryBot: Cherry Mui TryBot-Result: Gopher Robot --- diff --git a/src/cmd/link/internal/ld/dwarf.go b/src/cmd/link/internal/ld/dwarf.go index d060dda54d..b42da6dc0b 100644 --- a/src/cmd/link/internal/ld/dwarf.go +++ b/src/cmd/link/internal/ld/dwarf.go @@ -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) } } }