go/src/cmd/internal/obj
Guoqi Chen 3ed8a1e629 cmd/internal/obj/loong64: save LR after decrementing SP
Refer to CL 413428 and 412474, for loong64, like mips, s390x and riscv, there
is no single instruction that saves the LR and decrements the SP, so we also
need to insert an instruction to save the LR after decrementing the SP.

Fixes #56623.
Updates #53374.

Change-Id: I3de040792f0a041d3d2a98ea89c23a2dd2f4ad10
Reviewed-on: https://go-review.googlesource.com/c/go/+/416154
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Cherry Mui <cherryyz@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: WANG Xuerui <git@xen0n.name>
Reviewed-by: xiaodong liu <teaofmoli@gmail.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
Reviewed-by: Meidan Li <limeidan@loongson.cn>
2023-03-28 05:41:44 +00:00
..
arm cmd/{asm,compile,internal/obj}: add "maymorestack" support 2021-11-05 00:52:06 +00:00
arm64 cmd/asm: remove the incorrect check of LDADDx-like instructions 2023-02-28 05:12:50 +00:00
loong64 cmd/internal/obj/loong64: save LR after decrementing SP 2023-03-28 05:41:44 +00:00
mips cmd/internal/obj/mips,s390x,riscv: save LR after decrementing SP 2022-06-29 16:36:06 +00:00
ppc64 cmd/internal/obj/ppc64: fix incorrect base reg causing segv 2023-03-24 18:14:29 +00:00
riscv cmd/internal/obj/riscv: optimize loading large immediate with trailing zeros 2023-02-21 18:34:13 +00:00
s390x cmd/internal/obj/s390x, runtime: fix breakpoint in s390x 2023-01-20 05:00:12 +00:00
wasm all: implement wasmimport directive 2023-03-02 05:28:55 +00:00
x86 cmd/asm: improve detector for incorrect R15 usage when dynamic linking 2023-03-15 20:45:41 +00:00
abi_string.go cmd/compile: accept and parse symabis 2018-11-12 20:46:37 +00:00
addrtype_string.go cmd/asm: refactor some operands that are not special registers on arm64 2022-04-01 03:16:26 +00:00
data.go cmd/compile, cmd/link: use weak reference in itab 2021-03-24 14:38:53 +00:00
dwarf.go cmd/internal/obj: drop Filesym from DwarfAbstractFunc 2023-01-30 16:41:53 +00:00
go.go cmd/internal/obj: change Prog.From3 to RestArgs ([]Addr) 2017-09-15 21:05:03 +00:00
inl.go cmd/internal/obj: adjust (*Link).AllPos comment in inl.go 2022-11-10 17:44:41 +00:00
ld.go cmd/internal/obj: move LSym.Func into LSym.Extra 2020-10-16 03:02:36 +00:00
line.go cmd/internal/obj: cleanup linkgetlineFromPos 2022-10-31 20:45:15 +00:00
line_test.go cmd/internal/obj: cleanup linkgetlineFromPos 2022-10-31 20:45:15 +00:00
link.go all: implement wasmimport directive 2023-03-02 05:28:55 +00:00
objfile.go all: implement wasmimport directive 2023-03-02 05:28:55 +00:00
objfile_test.go cmd/internal/obj: use testenv.Command instead of exec.Command in tests 2022-11-15 20:21:30 +00:00
pass.go cmd/asm: refactor some operands that are not special registers on arm64 2022-04-01 03:16:26 +00:00
pcln.go cmd/internal/obj: cleanup linkgetlineFromPos 2022-10-31 20:45:15 +00:00
plist.go cmd/internal/obj: flag init functions in object file 2023-02-06 20:25:30 +00:00
sizeof_test.go cmd/internal/obj: remove LSym.RefIdx 2020-10-13 23:38:08 +00:00
stringer.go all: go fmt std cmd (but revert vendor) 2021-02-20 03:54:50 +00:00
sym.go all: implement wasmimport directive 2023-03-02 05:28:55 +00:00
textflag.go cmd/internal/obj: flag init functions in object file 2023-02-06 20:25:30 +00:00
util.go cmd/asm: add RDTIME{L,H}.W, RDTIME.D support for loong64 2023-02-06 13:49:53 +00:00