X7ROOT File Manager
Current Path:
/opt/golang/1.19.4/src/debug/elf/testdata
opt
/
golang
/
1.19.4
/
src
/
debug
/
elf
/
testdata
/
📁
..
📄
compressed-32.obj
(2.16 KB)
📄
compressed-64.obj
(3.2 KB)
📄
gcc-386-freebsd-exec
(5.61 KB)
📄
gcc-amd64-linux-exec
(8.64 KB)
📄
gcc-amd64-openbsd-debug-with-rela.obj
(6.39 KB)
📄
go-relocation-test-clang-arm.obj
(3.02 KB)
📄
go-relocation-test-clang-x86.obj
(1.86 KB)
📄
go-relocation-test-gcc424-x86-64.obj
(3.02 KB)
📄
go-relocation-test-gcc441-x86-64.obj
(2.87 KB)
📄
go-relocation-test-gcc441-x86.obj
(1.84 KB)
📄
go-relocation-test-gcc482-aarch64.obj
(3.31 KB)
📄
go-relocation-test-gcc482-ppc64le.obj
(2.95 KB)
📄
go-relocation-test-gcc492-arm.obj
(2.59 KB)
📄
go-relocation-test-gcc492-mips64.obj
(4.02 KB)
📄
go-relocation-test-gcc492-mipsle.obj
(2.8 KB)
📄
go-relocation-test-gcc493-mips64le.obj
(4.06 KB)
📄
go-relocation-test-gcc5-ppc.obj
(2.3 KB)
📄
go-relocation-test-gcc531-s390x.obj
(3.77 KB)
📄
go-relocation-test-gcc540-mips.obj
(2.99 KB)
📄
go-relocation-test-gcc620-sparc64.obj
(5.81 KB)
📄
go-relocation-test-gcc720-riscv64.obj
(9.35 KB)
📄
go-relocation-test-gcc930-ranges-no-rela-x86-64
(5.56 KB)
📄
go-relocation-test-gcc930-ranges-with-rela-x86-64
(7.5 KB)
📄
hello-world-core.gz
(12.38 KB)
📄
hello.c
(85 B)
📄
multiple-code-sections.c
(1.13 KB)
📄
zdebug-test-gcc484-x86-64.obj
(3.14 KB)
Editing: multiple-code-sections.c
// 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; }
Upload File
Create Folder