1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +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
alias.s
annotations.s
array-fill.ll
assembler-binary.ll
atomics-encodings.s
bad-fixup-expr.s
basic-assembly-errors.s
basic-assembly.s
blockaddress.ll
bss.ll
bulk-memory-encodings.s
call-indirect-relocs.s
comdat-sections.ll
comdat-sections.s
comdat.ll
compile-twice.ll
custom-code-section.ll
custom-sections.ll
data-section-combined.s
data-section.s
data-symbol-in-text-section.ll
debug-byval-struct.ll
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
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
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
function-sections.ll
global-ctor-dtor.ll
globals.s
import-module.s
libcall.ll
lit.local.cfg
missing-features.s
no-dead-strip.ll
null-output.s
objdump.s
offset.ll
reference-types.s
reloc-code.ll
reloc-data.ll
reloc-pic64.s
reloc-pic.s
reloc-relative.ll
section-flags-changed.s
section-symbol.s
sections.ll
simd-encodings.s
stack-ptr.ll
tables.s
tag-section-decoding.ll
tag-section.ll
tail-call-encodings.s
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
types.ll
unnamed-data.ll
visibility.ll
wasm64.s
weak-alias.s
weak.s