]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/link: fix trampolines breaking DWARF line info
authorJeremy Quirke <qjeremy@uber.com>
Tue, 9 Aug 2022 17:20:33 +0000 (17:20 +0000)
committerThan McIntosh <thanm@google.com>
Thu, 11 Aug 2022 14:11:53 +0000 (14:11 +0000)
commit2340d371796f95acdcc399e60f9ecefec2add8df
tree75abf1745f148d3a8a6fa9e2c68c29646ae7df31
parenta1337ef40cfa71625595b5b7f10b15341c1240f2
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 #54320

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>
src/cmd/link/internal/ld/dwarf_test.go
src/cmd/link/internal/loader/loader.go