1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00
llvm-mirror/test/MC
Wouter van Oortmerssen c0b486e8f3 [WebAssembly] Fix assert in lookup of section symbols
Fixes assert in: https://bugs.llvm.org/show_bug.cgi?id=49036

getWasmSection creates sections if they don't exist, but doesn't add them to the Symbols table. This may cause problems in subsequent calls to getOrCreateSymbol which checks this table, the calls createSymbol assuming it doesn't exist, which then checks UsedNames and finds out it does exist, causing an assert on trying to rename a non-temp symbol.

I tried also fixing the somewhat unintuitive forced suffixing (adding `0`), but it turns out that WasmObjectWriter currently assumes these section symbols are unique, so that may have to be a separate fix: https://bugs.llvm.org/show_bug.cgi?id=49252

Also worth noting is that getWasmSection calling createSymbol may not be correct to start with, given that createSymbol seems to assume it is creating non-section symbols. But again, for a future fix.

Related: where some of this was introduced: 8d396acac3

Differential Revision: https://reviews.llvm.org/D96473
2021-02-18 11:50:14 -08:00
..
AArch64 ELFObjectWriter: Don't sort non-local symbols 2021-02-13 10:32:27 -08:00
AMDGPU [AMDGPU] Temporary remove test 2021-02-17 22:41:04 -08:00
ARM ELFObjectWriter: Don't sort non-local symbols 2021-02-13 10:32:27 -08:00
AsmParser Reland "[AsmParser] make .ascii support spaces as separators" 2021-01-14 17:51:47 -08:00
AVR [AVR] Fix global references to function symbols 2021-02-10 00:40:49 +13:00
BPF
COFF [CodeView] Fix inline sites that are missing code offsets. 2020-12-07 13:01:53 -08:00
Disassembler [AMDGPU] gfx90a support 2021-02-17 16:01:32 -08:00
ELF ELFObjectWriter: Don't sort non-local symbols 2021-02-13 10:32:27 -08:00
Hexagon ELFObjectWriter: Don't sort local symbols 2021-02-07 15:47:10 -08:00
Lanai
MachO [Triple][MachO] Define "arm64e", an AArch64 subarch for Pointer Auth. 2020-12-03 07:53:59 -08:00
Mips ELFObjectWriter: Don't sort non-local symbols 2021-02-13 10:32:27 -08:00
MSP430
PowerPC ELFObjectWriter: Don't sort non-local symbols 2021-02-13 10:32:27 -08:00
RISCV [RISCV] Change parseVTypeI function 2021-02-12 19:38:34 +08:00
Sparc [Sparc] Support relocatable expressions in the assembler 2021-02-10 14:52:44 +01:00
SystemZ [SystemZ] Adding extra extended mnemonics for SystemZ target 2020-12-02 08:25:31 -05:00
VE
WebAssembly [WebAssembly] Fix assert in lookup of section symbols 2021-02-18 11:50:14 -08:00
X86 [X86] Accept 64-bit GPRs for vextractps when using a register that requires EVEX. 2021-02-01 11:01:32 -08:00