1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00
llvm-mirror/test/Object
Yonghong Song 52e5ec1f09 BPF: fix relocation types in lib/Object/RelocationResolver.cpp
Commit 6a2ea84600ba ("BPF: Add more relocation kinds")
added new relocations R_BPF_64_ABS64 and R_BPF_64_ABS32
for normal 64-bit and 32-bit data relocations.
This is to replace some of functionalities with
R_BPF_64_64 and R_BPF_64_32 so that new R_BPF_64_64
and R_BPF_64_32 semantics are for ld_imm64 and
call instructions only.

The BPF support in lib/Object/RelocationResolver.cpp
is used to perform normal data relocations for
the case like DWARFObjInMemory with an object file
(search function getRelocationResolver() in file
DebugInfo/DWARF/DWARFContext.cpp) or llvm-readobj
to dump ".stack_sizes" section data.
In all these casees, normal 64-bit and 32-bit relocations
are performed and such resolution resolution
is exactly what implemented in RelocationResolver.cpp.

But Commit 6a2ea84600ba missed to change
R_BPF_64_64/R_BPF_64_32 to R_BPF_64_ABS64/R_BPF_64_ABS32.
This patch fixed the issue and added a test for it
with llvm-readobj dumping ".stack_sizes" section.

Differential Revision: https://reviews.llvm.org/D103864
2021-06-07 20:59:21 -07:00
..
AArch64 Reland "[lib/Support/YAMLTraits] - Don't print leading zeroes when dumping Hex8/Hex16/Hex32 types." (https://reviews.llvm.org/D90930). 2020-11-18 13:08:46 +03:00
AMDGPU [AMDGPU] Add gfx1034 target 2021-05-13 14:25:18 -04:00
ARM
BPF BPF: fix relocation types in lib/Object/RelocationResolver.cpp 2021-06-07 20:59:21 -07:00
Inputs [TextAPI] Add support for arm64_32 2021-04-01 17:19:12 -07:00
Lanai [llvm-readobj] - For SHT_REL relocations, don't display an addend. 2020-12-14 12:03:00 +03:00
Mips Reland "[lib/Support/YAMLTraits] - Don't print leading zeroes when dumping Hex8/Hex16/Hex32 types." (https://reviews.llvm.org/D90930). 2020-11-18 13:08:46 +03:00
RISCV
X86 [llvm-readobj] - For SHT_REL relocations, don't display an addend. 2020-12-14 12:03:00 +03:00
ar-create.test
ar-error.test
archive-darwin-duplicates.test
archive-delete.test
archive-error-tmp.txt
archive-extract-dir.test [test] Use host platform specific error message substitution in lit tests 2021-01-29 07:16:30 -05:00
archive-extract.test [test] Use host platform specific error message substitution in lit tests 2021-01-29 07:16:30 -05:00
archive-format.test
archive-long-filenames-no-null-terminator.test
archive-long-index.test
archive-malformed-object.test [Archive] Don't throw away errors for malformed archive members 2020-10-01 14:03:34 +01:00
archive-move.test
archive-pad.test
archive-replace-pos.test
archive-symtab.test [llvm-ar][Object] Fix detection of need for 64-bit archive symbol tables 2020-10-26 12:29:28 +00:00
archive-thin-create.test
archive-thin-paths.test
archive-thin-read.test
archive-toc.test
archive-unknown-filetype.test [Archive] Don't throw away errors for malformed archive members 2020-10-01 14:03:34 +01:00
archive-update.test
check_binary_output.ll
coff-archive-short.test
coff-archive.test
coff-empty-drectve.test
coff-invalid.test
coff-weak-externals.test
directory.ll [test] Use host platform specific error message substitution in lit tests 2021-01-29 07:16:30 -05:00
dllimport-globalref.ll
dllimport.ll
dyn-rel-relocation.test [llvm-readobj] - For SHT_REL relocations, don't display an addend. 2020-12-14 12:03:00 +03:00
dynamic-reloc.test
invalid-alignment.test
invalid.test [yaml2obj/obj2yaml] - Improve dumping/creating of ELF versioning sections. 2021-01-21 10:36:48 +03:00
kext.test
macho-invalid.test [llvm-nm] Tidy up error messages 2021-02-15 13:54:08 +00:00
mangle-ir.ll
multi-module.ll
multiple-sections.yaml [llvm-readobj] set --elf-cg-profile as alias of --cg-profile 2020-06-17 11:24:45 -07:00
nm-archive.test [llvm-nm] Tidy up error messages 2021-02-15 13:54:08 +00:00
nm-bitcode.test
nm-darwin-m.test
nm-error.test
nm-irix6.test
nm-pe-image.test
nm-shared-object.test [llvm-nm] Tidy up error messages 2021-02-15 13:54:08 +00:00
nm-tapi-invalids.test [llvm-nm] Tidy up error messages 2021-02-15 13:54:08 +00:00
nm-tapi.test [TextAPI] Add support for arm64_32 2021-04-01 17:19:12 -07:00
nm-trivial-object.test
nm-universal-binary.test
nm-weak-global-macho.test
obj2yaml.test [yaml2obj/obj2yaml/llvm-readobj] Support printing and parsing AVR-specific e_flags 2021-04-15 15:54:28 +02:00
objc-imageinfo-coff.ll
objc-imageinfo-elf.ll
objc-imageinfo-macho.ll
objc-swift-mixed-imageinfo-macho.ll
objdump-export-list.test
objdump-no-sectionheaders.test
objdump-private-headers.test
objdump-relocations.test
objdump-section-content.test
objdump-sectionheaders.test
objdump-symbol-table.test
pr25877.test
relocation-executable.test
simple-archive.test
size-trivial-macho.test
stackmap-dump.test
wasm-bad-data-symbol.yaml [lld][WebAssembly] Allow data symbols to extend past end of segment 2021-05-12 13:43:37 -07:00
wasm-bad-metadata-version.yaml [Object][WebAssembly] Update format of error messages 2021-01-25 21:12:53 -08:00
wasm-bad-reloc-type.test [Object][WebAssembly] Update format of error messages 2021-01-25 21:12:53 -08:00
wasm-bad-symbol-type.test [Object][WebAssembly] Update format of error messages 2021-01-25 21:12:53 -08:00
wasm-duplicate-name.test [Object][WebAssembly] Update format of error messages 2021-01-25 21:12:53 -08:00
wasm-invalid-file.yaml [Object][WebAssembly] Update format of error messages 2021-01-25 21:12:53 -08:00
wasm-invalid-section-order.test [Object][WebAssembly] Update format of error messages 2021-01-25 21:12:53 -08:00
wasm-invalid-start.test [Object][WebAssembly] Update format of error messages 2021-01-25 21:12:53 -08:00
wasm-missing-version.test [Object][WebAssembly] Update format of error messages 2021-01-25 21:12:53 -08:00
wasm-relocs-and-producers.yaml [WebAssembly] Rename WasmLimits::Initial to ::Minimum. NFC. 2021-03-24 09:10:11 +01:00
wasm-string-outside-section.test
yaml2obj-elf-rel-noref.yaml [llvm-readobj] - For SHT_REL relocations, don't display an addend. 2020-12-14 12:03:00 +03:00
yaml2obj-elf-rel.yaml [llvm-readobj] - For SHT_REL relocations, don't display an addend. 2020-12-14 12:03:00 +03:00
yaml2obj-readobj.test