1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00
llvm-mirror/test/MC/WebAssembly
Derek Schuff 0c7127a873 [WebAssembly] Generate R_WASM_FUNCTION_OFFSET relocs in debuginfo sections
Debug info sections need R_WASM_FUNCTION_OFFSET_I32 relocs (with FK_Data_4 fixup
kinds) to refer to functions (instead of R_WASM_TABLE_INDEX as is used in data
sections). Usually this is done in a convoluted way, with unnamed temp data
symbols which target the start of the function, in which case
WasmObjectWriter::recordRelocation converts it to use the section symbol
instead. However in some cases the function can actually be undefined; in this
case the dwarf generator uses the function symbol (a named undefined function
symbol) instead. In that case the section-symbol transform doesn't work and we
need to generate the correct reloc type a different way. In this change
WebAssemblyWasmObjectWriter::getRelocType takes the fixup section type into
account to choose the correct reloc type.

Fixes PR50408
Differential Revision: https://reviews.llvm.org/D103557
2021-07-19 14:02:33 -07:00
..
alias-offset.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
alias.s
annotations.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
array-fill.ll [WebAssembly] Remove datalayout strings from llc tests 2021-07-14 11:17:08 -07:00
assembler-binary.ll [WebAssembly] Remove datalayout strings from llc tests 2021-07-14 11:17:08 -07:00
atomics-encodings.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
bad-fixup-expr.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
basic-assembly-errors.s
basic-assembly.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
blockaddress.ll
bss.ll
bulk-memory-encodings.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
call-indirect-relocs.s
comdat-sections.ll [WebAssembly] Remove datalayout strings from llc tests 2021-07-14 11:17:08 -07:00
comdat-sections.s
comdat.ll
compile-twice.ll
custom-code-section.ll
custom-sections.ll
data-section-combined.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
data-section.s
data-symbol-in-text-section.ll [WebAssembly] Remove datalayout strings from llc tests 2021-07-14 11:17:08 -07:00
debug-byval-struct.ll [WebAssembly] Remove datalayout strings from llc tests 2021-07-14 11:17:08 -07:00
debug-info64.ll [test] Avoid llvm-readelf/llvm-readobj one-dash long options and deprecated aliases (e.g. --file-headers) 2021-07-15 10:26:21 -07:00
debug-info.ll [test] Avoid llvm-readelf/llvm-readobj one-dash long options and deprecated aliases (e.g. --file-headers) 2021-07-15 10:26:21 -07:00
debug-localvar.ll [WebAssembly] Remove datalayout strings from llc tests 2021-07-14 11:17:08 -07:00
debug-template-param.ll [WebAssembly] Generate R_WASM_FUNCTION_OFFSET relocs in debuginfo sections 2021-07-19 14:02:33 -07:00
debuginfo-relocs.s [WebAssembly] Generate R_WASM_FUNCTION_OFFSET relocs in debuginfo sections 2021-07-19 14:02:33 -07:00
dwarfdump64.ll
dwarfdump.ll
explicit-sections.ll
export-name.s
external-data.ll
external-func-address.ll
externref.s
file-headers.ll [WebAssembly] Remove datalayout strings from llc tests 2021-07-14 11:17:08 -07:00
func-address.ll [test] Avoid llvm-readelf/llvm-readobj one-dash long options and deprecated aliases (e.g. --file-headers) 2021-07-15 10:26:21 -07:00
function-alias.ll [WebAssembly] Remove datalayout strings from llc tests 2021-07-14 11:17:08 -07:00
function-sections.ll
global-ctor-dtor.ll
globals.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
import-module.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
libcall.ll
lit.local.cfg
missing-features.s
no-dead-strip.ll
null-output.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
objdump.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
offset.ll
reference-types.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
reloc-code.ll
reloc-data.ll
reloc-pic64.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
reloc-pic.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
reloc-relative.ll
section-flags-changed.s
section-symbol.s
sections.ll
simd-encodings.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
stack-ptr.ll
tables.s
tag-section-decoding.ll
tag-section.ll
tail-call-encodings.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
tls64.s [WebAssembly] Support R_WASM_MEMORY_ADDR_TLS_SLEB64 for wasm64 2021-07-19 10:22:43 -07:00
tls.s [WebAssembly] Support R_WASM_MEMORY_ADDR_TLS_SLEB64 for wasm64 2021-07-19 10:22:43 -07:00
type-index.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
types.ll
unnamed-data.ll
visibility.ll
wasm64.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
weak-alias.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
weak.s