commit | 6a65923eb7420206543da015f2de19bf506b164a | [log] [tgz] |
---|---|---|
author | Paul E. Murphy <murp@ibm.com> | Tue Sep 20 16:52:35 2022 -0500 |
committer | Paul Murphy <murp@ibm.com> | Tue Sep 27 17:28:34 2022 +0000 |
tree | f6becdb996e86bcb5f566b22083811ba04ba2b94 | |
parent | 2926576b28c0567946e1a16de13155f56d9790ea [diff] |
ppc64/ppc64asm: improve PCrel argument decoding If an object is built for PIE, CALL opcodes will target the symbol's local entry point. When disassembling, we should print the symbol name if the target is the symbol+8. The local entry offset on PPC64 is almost always 0 or 8. For pure go, it is always 0 or 8 today. If a call looks like it targets a local entry, print it as "CALL symbol+8(SB)". Change-Id: I72a2f1eaafd226ed5466384c63040d2f375a541f Reviewed-on: https://go-review.googlesource.com/c/arch/+/432166 Reviewed-by: Cherry Mui <cherryyz@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Run-TryBot: Paul Murphy <murp@ibm.com> TryBot-Result: Gopher Robot <gobot@golang.org>
This repository holds machine architecture information used by the Go toolchain. The parts needed in the main Go repository are copied in.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the arch repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/arch:” in the subject line, so it is easy to find.