llvm-project/llvm/test/MC/WebAssembly
Derek Schuff ad1f5457d2 [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 [WebAssembly] Update InstPrinter and AsmParser for new EH instructions 2021-02-06 08:54:56 -08:00
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 [WebAssembly] Rename WasmLimits::Initial to ::Minimum. NFC. 2021-03-24 09:10:11 +01:00
comdat-sections.ll [WebAssembly] Remove datalayout strings from llc tests 2021-07-14 11:17:08 -07:00
comdat-sections.s [WebAssembly] Support COMDAT sections in assembly syntax 2020-12-10 16:43:59 -08:00
comdat.ll [WebAssembly] Rename WasmLimits::Initial to ::Minimum. NFC. 2021-03-24 09:10:11 +01:00
compile-twice.ll
custom-code-section.ll
custom-sections.ll [MC][WebAssembly] Only emit indirect function table import if needed 2020-11-25 08:38:43 -08:00
data-section-combined.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
data-section.s [WebAssembly] Rename WasmLimits::Initial to ::Minimum. NFC. 2021-03-24 09:10:11 +01:00
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-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-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-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
dwarfdump.ll Revert "[NFC] remove explicit default value for strboolattr attribute in tests" 2021-05-24 19:43:40 +02:00
dwarfdump64.ll Revert "[NFC] remove explicit default value for strboolattr attribute in tests" 2021-05-24 19:43:40 +02:00
explicit-sections.ll
export-name.s
external-data.ll 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
external-func-address.ll [MC][WebAssembly] Only emit indirect function table import if needed 2020-11-25 08:38:43 -08:00
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 [WebAssembly] Rename WasmLimits::Initial to ::Minimum. NFC. 2021-03-24 09:10:11 +01:00
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 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
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 [WebAssembly] call_indirect issues table number relocs 2021-03-01 16:49:00 +01:00
reloc-data.ll
reloc-pic.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
reloc-pic64.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
reloc-relative.ll [WebAssembly] Add new relocation for location relative data 2021-03-08 11:34:10 -08:00
section-flags-changed.s Reland: "[lld][WebAssembly] Initial support merging string data" 2021-05-10 16:03:38 -07:00
section-symbol.s [WebAssembly] Fix assert in lookup of section symbols 2021-02-18 11:50:14 -08:00
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 [WebAssembly][MC] Record limit constraints for table sizes 2021-03-24 09:44:22 +01:00
tag-section-decoding.ll [WebAssembly] Rename event to tag 2021-06-17 20:34:19 -07:00
tag-section.ll [WebAssembly] Rename event to tag 2021-06-17 20:34:19 -07:00
tail-call-encodings.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
tls.s [WebAssembly] Support R_WASM_MEMORY_ADDR_TLS_SLEB64 for wasm64 2021-07-19 10:22:43 -07:00
tls64.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 [WebAssembly] Remove unimplemented-simd target feature 2021-03-18 10:23:12 -07:00
unnamed-data.ll Reland: "[lld][WebAssembly] Initial support merging string data" 2021-05-10 16:03:38 -07:00
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