From 75136fc14c0d3ec64a2f6728e96fc86066d853c9 Mon Sep 17 00:00:00 2001 From: Cherry Mui Date: Thu, 4 May 2023 17:11:46 -0400 Subject: [PATCH] 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 --- src/cmd/link/internal/ld/dwarf.go | 2 -- 1 file changed, 2 deletions(-) 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) } } } -- 2.48.1