[PATCH] D90542: [lld][WebAssembly] Remove bad-reloc test

Sam Clegg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 31 16:41:44 PDT 2020


sbc100 created this revision.
Herald added subscribers: llvm-commits, wingo, ecnelises, sunfish, jgravelle-google, dschuff.
Herald added a project: LLVM.
sbc100 requested review of this revision.
Herald added a subscriber: aheejin.

This test was check behaviour that only exists in the debug
configuration so will fail in release builds.

Perhaps there is way to keep this test around and only run
it in debug builds but for now I'm removing so fix the
release builders.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D90542

Files:
  lld/test/wasm/bad-reloc.yaml


Index: lld/test/wasm/bad-reloc.yaml
===================================================================
--- lld/test/wasm/bad-reloc.yaml
+++ /dev/null
@@ -1,78 +0,0 @@
-# RUN: yaml2obj %s -o %t.o
-# RUN: not wasm-ld --fatal-warnings %t.o -o /dev/null 2>&1 | FileCheck %s
-#
-# CHECK: bad-reloc.yaml.tmp.o:(_start): unexpected existing value for R_WASM_MEMORY_ADDR_LEB: existing=1 expected=0
-#
-# The code section bellow has been modified such that the target of the
-# relocation is 8180808000 (LEB of 1) rather than 8080808000 (LEB = 0)
-
-# FIXME: Error doesn't appear to arise.
-# XFAIL: windows
-
---- !WASM
-FileHeader:
-  Version:         0x00000001
-Sections:
-  - Type:            TYPE
-    Signatures:
-      - Index:           0
-        ParamTypes:      []
-        ReturnTypes:
-          - I32
-  - Type:            IMPORT
-    Imports:
-      - Module:          env
-        Field:           __linear_memory
-        Kind:            MEMORY
-        Memory:
-          Initial:         0x00000001
-      - Module:          env
-        Field:           __indirect_function_table
-        Kind:            TABLE
-        Table:
-          Index:           0
-          ElemType:        FUNCREF
-          Limits:
-            Initial:         0x00000000
-  - Type:            FUNCTION
-    FunctionTypes:   [ 0 ]
-  - Type:            DATACOUNT
-    Count:           1
-  - Type:            CODE
-    Relocations:
-      - Type:            R_WASM_MEMORY_ADDR_LEB
-        Index:           1
-        Offset:          0x00000007
-    Functions:
-      - Index:           0
-        Locals:          []
-        Body:            4100280281808080002802000B
-  - Type:            DATA
-    Segments:
-      - SectionOffset:   6
-        InitFlags:       0
-        Offset:
-          Opcode:          I32_CONST
-          Value:           0
-        Content:         '00000000'
-  - Type:            CUSTOM
-    Name:            linking
-    Version:         2
-    SymbolTable:
-      - Index:           0
-        Kind:            FUNCTION
-        Name:            _start
-        Flags:           [ VISIBILITY_HIDDEN ]
-        Function:        0
-      - Index:           1
-        Kind:            DATA
-        Name:            bar
-        Flags:           [ VISIBILITY_HIDDEN ]
-        Segment:         0
-        Size:            4
-    SegmentInfo:
-      - Index:           0
-        Name:            .bss.bar
-        Alignment:       2
-        Flags:           [  ]
-


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90542.302114.patch
Type: text/x-patch
Size: 2496 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201031/25420384/attachment.bin>


More information about the llvm-commits mailing list