mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
0c7127a873
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 |
||
---|---|---|
.. | ||
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 | ||
debug-info.ll | ||
debug-localvar.ll | ||
debug-template-param.ll | ||
debuginfo-relocs.s | ||
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 | ||
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 | ||
tls.s | ||
type-index.s | ||
types.ll | ||
unnamed-data.ll | ||
visibility.ll | ||
wasm64.s | ||
weak-alias.s | ||
weak.s |