]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/asm: new -p option, changes to DWARF generation
authorThan McIntosh <thanm@google.com>
Fri, 6 Mar 2020 17:43:59 +0000 (12:43 -0500)
committerThan McIntosh <thanm@google.com>
Tue, 10 Mar 2020 18:59:06 +0000 (18:59 +0000)
commit9cae3b33c3553932ca9689dda0de8ff215a39c89
tree119921d60c331ead8258ac550123d5307fca2e0b
parentcdc1b195139ecb8d1cfed028cf5b50f11d591f2e
[dev.link] cmd/asm: new -p option, changes to DWARF generation

Adds a new "-p" option to the assembler, for specifying the import
path of the package being compiled. DWARF generation is now conditional
on having a valid package path -- if we don't know the package path,
then don't emit DWARF.

This is intended to lay the groundwork for removing the various
"patchDWARFname" hacks in the linker.

Change-Id: I5f8315c0881791eb8fe1f2ba32f5bb0ae76f6b98
Reviewed-on: https://go-review.googlesource.com/c/go/+/222718
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Jeremy Faller <jeremy@golang.org>
src/cmd/asm/internal/flags/flags.go
src/cmd/asm/main.go
src/cmd/go/internal/work/gc.go
src/cmd/internal/obj/plist.go