diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-16 19:23:18 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-16 19:23:18 +0000 |
commit | 43a123c1ae6613b3efeed291fa552ecd909d3acf (patch) | |
tree | fd92518b7024bc74031f78a1cf9e454b65e73665 /src/debug/elf/testdata | |
parent | Initial commit. (diff) | |
download | golang-1.20-43a123c1ae6613b3efeed291fa552ecd909d3acf.tar.xz golang-1.20-43a123c1ae6613b3efeed291fa552ecd909d3acf.zip |
Adding upstream version 1.20.14.upstream/1.20.14upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/debug/elf/testdata')
27 files changed, 35 insertions, 0 deletions
diff --git a/src/debug/elf/testdata/compressed-32.obj b/src/debug/elf/testdata/compressed-32.obj Binary files differnew file mode 100644 index 0000000..2bfdb44 --- /dev/null +++ b/src/debug/elf/testdata/compressed-32.obj diff --git a/src/debug/elf/testdata/compressed-64.obj b/src/debug/elf/testdata/compressed-64.obj Binary files differnew file mode 100644 index 0000000..ffae56a --- /dev/null +++ b/src/debug/elf/testdata/compressed-64.obj diff --git a/src/debug/elf/testdata/gcc-386-freebsd-exec b/src/debug/elf/testdata/gcc-386-freebsd-exec Binary files differnew file mode 100644 index 0000000..7af9c58 --- /dev/null +++ b/src/debug/elf/testdata/gcc-386-freebsd-exec diff --git a/src/debug/elf/testdata/gcc-amd64-linux-exec b/src/debug/elf/testdata/gcc-amd64-linux-exec Binary files differnew file mode 100644 index 0000000..c6cb1de --- /dev/null +++ b/src/debug/elf/testdata/gcc-amd64-linux-exec diff --git a/src/debug/elf/testdata/gcc-amd64-openbsd-debug-with-rela.obj b/src/debug/elf/testdata/gcc-amd64-openbsd-debug-with-rela.obj Binary files differnew file mode 100644 index 0000000..f62b1ea --- /dev/null +++ b/src/debug/elf/testdata/gcc-amd64-openbsd-debug-with-rela.obj diff --git a/src/debug/elf/testdata/go-relocation-test-clang-arm.obj b/src/debug/elf/testdata/go-relocation-test-clang-arm.obj Binary files differnew file mode 100644 index 0000000..1cc7e4b --- /dev/null +++ b/src/debug/elf/testdata/go-relocation-test-clang-arm.obj diff --git a/src/debug/elf/testdata/go-relocation-test-clang-x86.obj b/src/debug/elf/testdata/go-relocation-test-clang-x86.obj Binary files differnew file mode 100644 index 0000000..e909cf4 --- /dev/null +++ b/src/debug/elf/testdata/go-relocation-test-clang-x86.obj diff --git a/src/debug/elf/testdata/go-relocation-test-gcc424-x86-64.obj b/src/debug/elf/testdata/go-relocation-test-gcc424-x86-64.obj Binary files differnew file mode 100644 index 0000000..a7c6d6e --- /dev/null +++ b/src/debug/elf/testdata/go-relocation-test-gcc424-x86-64.obj diff --git a/src/debug/elf/testdata/go-relocation-test-gcc441-x86-64.obj b/src/debug/elf/testdata/go-relocation-test-gcc441-x86-64.obj Binary files differnew file mode 100644 index 0000000..2d37ab6 --- /dev/null +++ b/src/debug/elf/testdata/go-relocation-test-gcc441-x86-64.obj diff --git a/src/debug/elf/testdata/go-relocation-test-gcc441-x86.obj b/src/debug/elf/testdata/go-relocation-test-gcc441-x86.obj Binary files differnew file mode 100644 index 0000000..0d59fe3 --- /dev/null +++ b/src/debug/elf/testdata/go-relocation-test-gcc441-x86.obj diff --git a/src/debug/elf/testdata/go-relocation-test-gcc482-aarch64.obj b/src/debug/elf/testdata/go-relocation-test-gcc482-aarch64.obj Binary files differnew file mode 100644 index 0000000..849e264 --- /dev/null +++ b/src/debug/elf/testdata/go-relocation-test-gcc482-aarch64.obj diff --git a/src/debug/elf/testdata/go-relocation-test-gcc482-ppc64le.obj b/src/debug/elf/testdata/go-relocation-test-gcc482-ppc64le.obj Binary files differnew file mode 100644 index 0000000..dad7445 --- /dev/null +++ b/src/debug/elf/testdata/go-relocation-test-gcc482-ppc64le.obj diff --git a/src/debug/elf/testdata/go-relocation-test-gcc492-arm.obj b/src/debug/elf/testdata/go-relocation-test-gcc492-arm.obj Binary files differnew file mode 100644 index 0000000..ed45be2 --- /dev/null +++ b/src/debug/elf/testdata/go-relocation-test-gcc492-arm.obj diff --git a/src/debug/elf/testdata/go-relocation-test-gcc492-mips64.obj b/src/debug/elf/testdata/go-relocation-test-gcc492-mips64.obj Binary files differnew file mode 100644 index 0000000..68febe1 --- /dev/null +++ b/src/debug/elf/testdata/go-relocation-test-gcc492-mips64.obj diff --git a/src/debug/elf/testdata/go-relocation-test-gcc492-mipsle.obj b/src/debug/elf/testdata/go-relocation-test-gcc492-mipsle.obj Binary files differnew file mode 100644 index 0000000..a5fbcfb --- /dev/null +++ b/src/debug/elf/testdata/go-relocation-test-gcc492-mipsle.obj diff --git a/src/debug/elf/testdata/go-relocation-test-gcc493-mips64le.obj b/src/debug/elf/testdata/go-relocation-test-gcc493-mips64le.obj Binary files differnew file mode 100644 index 0000000..20bbd6c --- /dev/null +++ b/src/debug/elf/testdata/go-relocation-test-gcc493-mips64le.obj diff --git a/src/debug/elf/testdata/go-relocation-test-gcc5-ppc.obj b/src/debug/elf/testdata/go-relocation-test-gcc5-ppc.obj Binary files differnew file mode 100644 index 0000000..f4165af --- /dev/null +++ b/src/debug/elf/testdata/go-relocation-test-gcc5-ppc.obj diff --git a/src/debug/elf/testdata/go-relocation-test-gcc531-s390x.obj b/src/debug/elf/testdata/go-relocation-test-gcc531-s390x.obj Binary files differnew file mode 100644 index 0000000..caacb9b --- /dev/null +++ b/src/debug/elf/testdata/go-relocation-test-gcc531-s390x.obj diff --git a/src/debug/elf/testdata/go-relocation-test-gcc540-mips.obj b/src/debug/elf/testdata/go-relocation-test-gcc540-mips.obj Binary files differnew file mode 100644 index 0000000..270c777 --- /dev/null +++ b/src/debug/elf/testdata/go-relocation-test-gcc540-mips.obj diff --git a/src/debug/elf/testdata/go-relocation-test-gcc620-sparc64.obj b/src/debug/elf/testdata/go-relocation-test-gcc620-sparc64.obj Binary files differnew file mode 100644 index 0000000..d65c23e --- /dev/null +++ b/src/debug/elf/testdata/go-relocation-test-gcc620-sparc64.obj diff --git a/src/debug/elf/testdata/go-relocation-test-gcc720-riscv64.obj b/src/debug/elf/testdata/go-relocation-test-gcc720-riscv64.obj Binary files differnew file mode 100644 index 0000000..91ae648 --- /dev/null +++ b/src/debug/elf/testdata/go-relocation-test-gcc720-riscv64.obj diff --git a/src/debug/elf/testdata/go-relocation-test-gcc930-ranges-no-rela-x86-64 b/src/debug/elf/testdata/go-relocation-test-gcc930-ranges-no-rela-x86-64 Binary files differnew file mode 100644 index 0000000..c013f3e --- /dev/null +++ b/src/debug/elf/testdata/go-relocation-test-gcc930-ranges-no-rela-x86-64 diff --git a/src/debug/elf/testdata/go-relocation-test-gcc930-ranges-with-rela-x86-64 b/src/debug/elf/testdata/go-relocation-test-gcc930-ranges-with-rela-x86-64 Binary files differnew file mode 100644 index 0000000..51e03aa --- /dev/null +++ b/src/debug/elf/testdata/go-relocation-test-gcc930-ranges-with-rela-x86-64 diff --git a/src/debug/elf/testdata/hello-world-core.gz b/src/debug/elf/testdata/hello-world-core.gz Binary files differnew file mode 100644 index 0000000..6d76ab0 --- /dev/null +++ b/src/debug/elf/testdata/hello-world-core.gz diff --git a/src/debug/elf/testdata/hello.c b/src/debug/elf/testdata/hello.c new file mode 100644 index 0000000..34d9ee7 --- /dev/null +++ b/src/debug/elf/testdata/hello.c @@ -0,0 +1,7 @@ +#include <stdio.h> + +void +main(int argc, char *argv[]) +{ + printf("hello, world\n"); +} diff --git a/src/debug/elf/testdata/multiple-code-sections.c b/src/debug/elf/testdata/multiple-code-sections.c new file mode 100644 index 0000000..03b9d53 --- /dev/null +++ b/src/debug/elf/testdata/multiple-code-sections.c @@ -0,0 +1,28 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Build with: +// gcc -g multiple-code-sections.c -Wl,--emit-relocs -Wl,--discard-none -Wl,-zmax-page-size=1 -fno-asynchronous-unwind-tables -o go-relocation-test-gcc930-ranges-with-rela-x86-64 +// gcc -g multiple-code-sections.c -Wl,-zmax-page-size=1 -fno-asynchronous-unwind-tables -o go-relocation-test-gcc930-ranges-no-rela-x86-64 +// Strip with: +// strip --only-keep-debug \ +// --remove-section=.eh_frame \ +// --remove-section=.eh_frame_hdr \ +// --remove-section=.shstrtab \ +// --remove-section=.strtab \ +// --remove-section=.symtab \ +// --remove-section=.note.gnu.build-id \ +// --remove-section=.note.ABI-tag \ +// --remove-section=.dynamic \ +// --remove-section=.gnu.hash \ +// --remove-section=.interp \ +// --remove-section=.rodata +__attribute__((section(".separate_section"))) // To get GCC to emit a DW_AT_ranges attribute for the CU. +int func(void) { + return 0; +} + +int main(int argc, char *argv[]) { + return 0; +} diff --git a/src/debug/elf/testdata/zdebug-test-gcc484-x86-64.obj b/src/debug/elf/testdata/zdebug-test-gcc484-x86-64.obj Binary files differnew file mode 100644 index 0000000..a595a01 --- /dev/null +++ b/src/debug/elf/testdata/zdebug-test-gcc484-x86-64.obj |