[lld] r373242 - Revert "[MC] Emit unused undefined symbol even if its binding is not set"

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 30 11:13:48 PDT 2019


Author: nico
Date: Mon Sep 30 11:13:48 2019
New Revision: 373242

URL: http://llvm.org/viewvc/llvm-project?rev=373242&view=rev
Log:
Revert "[MC] Emit unused undefined symbol even if its binding is not set"

This reverts r373168. It caused PR43511.

Modified:
    lld/trunk/test/ELF/ppc64-abs64-dyn.s
    lld/trunk/test/ELF/ppc64-relocs.s

Modified: lld/trunk/test/ELF/ppc64-abs64-dyn.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/ppc64-abs64-dyn.s?rev=373242&r1=373241&r2=373242&view=diff
==============================================================================
--- lld/trunk/test/ELF/ppc64-abs64-dyn.s (original)
+++ lld/trunk/test/ELF/ppc64-abs64-dyn.s Mon Sep 30 11:13:48 2019
@@ -12,10 +12,10 @@
 
 ## FIXME the addend for offset 0x20000 should be TOC base+0x8000+1, not 0x80001.
 # CHECK:      .rela.dyn {
-# CHECK-NEXT:   0x303B8 R_PPC64_RELATIVE - 0x8001
-# CHECK-NEXT:   0x303C0 R_PPC64_RELATIVE - 0x303B9
-# CHECK-NEXT:   0x303C8 R_PPC64_ADDR64 external 0x1
-# CHECK-NEXT:   0x303D0 R_PPC64_ADDR64 global 0x1
+# CHECK-NEXT:   0x303B0 R_PPC64_RELATIVE - 0x8001
+# CHECK-NEXT:   0x303B8 R_PPC64_RELATIVE - 0x303B1
+# CHECK-NEXT:   0x303C0 R_PPC64_ADDR64 external 0x1
+# CHECK-NEXT:   0x303C8 R_PPC64_ADDR64 global 0x1
 # CHECK-NEXT: }
 
 .data

Modified: lld/trunk/test/ELF/ppc64-relocs.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/ppc64-relocs.s?rev=373242&r1=373241&r2=373242&view=diff
==============================================================================
--- lld/trunk/test/ELF/ppc64-relocs.s (original)
+++ lld/trunk/test/ELF/ppc64-relocs.s Mon Sep 30 11:13:48 2019
@@ -26,13 +26,13 @@ _start:
   ld 1, .L1 at toc@l(2)
 
 # CHECK-LABEL: Disassembly of section .R_PPC64_TOC16_LO_DS:
-# CHECK: ld 1, -32760(2)
+# CHECK: ld 1, -32768(2)
 
 .section .R_PPC64_TOC16_LO,"ax", at progbits
   addi  1, 2, .L1 at toc@l
 
 # CHECK-LABEL: Disassembly of section .R_PPC64_TOC16_LO:
-# CHECK: addi 1, 2, -32760
+# CHECK: addi 1, 2, -32768
 
 .section .R_PPC64_TOC16_HI,"ax", at progbits
   addis 1, 2, .L1 at toc@h




More information about the llvm-commits mailing list