diff options
| author | Meng Zhuo <mengzhuo@iscas.ac.cn> | 2025-03-13 16:29:16 +0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-03-14 15:08:23 -0700 |
| commit | 5bb73e650496c229c9baf5b9a4fe3861c07c9302 (patch) | |
| tree | c53f6ce18a9b8cc86a7147e97afa7259be1c507f /src/debug/elf/testdata | |
| parent | 853b514417dab2cf0383e48207caff2ce0305618 (diff) | |
| download | go-5bb73e650496c229c9baf5b9a4fe3861c07c9302.tar.xz | |
debug/elf: add riscv attributes definitions
This CL adds `riscv.attributes` related ELF section header
type and program header type according to
[RISC-V ELF Specification](https://github.com/riscv-non-isa/riscv-elf-psabi-doc/releases/download/v1.0/riscv-abi.pdf)
Also an riscv64/linux testcase binary built from:
```
gcc -march=rv64g -no-pie -o gcc-riscv64-linux-exec hello.c
strip gcc-riscv64-linux-exec
```
Fixes #72843
Change-Id: I7710a0516f69141c0efaba71dd997f05b4c88421
Reviewed-on: https://go-review.googlesource.com/c/go/+/657515
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/debug/elf/testdata')
| -rw-r--r-- | src/debug/elf/testdata/gcc-riscv64-linux-exec | bin | 0 -> 6184 bytes |
1 files changed, 0 insertions, 0 deletions
diff --git a/src/debug/elf/testdata/gcc-riscv64-linux-exec b/src/debug/elf/testdata/gcc-riscv64-linux-exec Binary files differnew file mode 100644 index 0000000000..e01f6f292c --- /dev/null +++ b/src/debug/elf/testdata/gcc-riscv64-linux-exec |
