]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.18] cmd/link: fix trampolines breaking DWARF line info
authorJeremy Quirke <qjeremy@uber.com>
Tue, 9 Aug 2022 17:20:33 +0000 (17:20 +0000)
committerHeschi Kreinick <heschi@google.com>
Mon, 29 Aug 2022 19:11:15 +0000 (19:11 +0000)
commit569d949eeab8b16ae2548a3132ca6f1b8657262b
treeb402c300350a49900ff4022d81313325429e958d
parentdb2685159346c582cf8ff4cdf8d3632c3b4b1bf6
[release-branch.go1.18] cmd/link: fix trampolines breaking DWARF line info

When trampolines are needed (e.g. Darwin ARM64), the DWARF LPT (Line
Program Table - see DWARF section 6.1) generation fails because the
replacement symbols are marked as external symbols and skipped during
the DWARF LPT generation phase.

Fixes #54502

Change-Id: I6c93f5378f50e5edf30d5121402a48214abb1ce2
GitHub-Last-Rev: 085bbc55dbc95d55456cc2acc46a0d02416c2848
GitHub-Pull-Request: golang/go#54321
Reviewed-on: https://go-review.googlesource.com/c/go/+/422154
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Than McIntosh <thanm@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
(cherry picked from commit 2340d371796f95acdcc399e60f9ecefec2add8df)
Reviewed-on: https://go-review.googlesource.com/c/go/+/424536
Run-TryBot: Cherry Mui <cherryyz@google.com>
src/cmd/link/internal/ld/dwarf_test.go
src/cmd/link/internal/loader/loader.go