[lld] 251640a - [ELF][test] Terminate .debug_info with a null entry to fix warnings

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 22 19:21:00 PST 2022


Author: Fangrui Song
Date: 2022-02-22T19:20:56-08:00
New Revision: 251640ab575634256de6d6fde5c5359fe21efe91

URL: https://github.com/llvm/llvm-project/commit/251640ab575634256de6d6fde5c5359fe21efe91
DIFF: https://github.com/llvm/llvm-project/commit/251640ab575634256de6d6fde5c5359fe21efe91.diff

LOG: [ELF][test] Terminate .debug_info with a null entry to fix warnings

Added: 
    

Modified: 
    lld/test/ELF/comdat-discarded-gdb-index.s

Removed: 
    


################################################################################
diff  --git a/lld/test/ELF/comdat-discarded-gdb-index.s b/lld/test/ELF/comdat-discarded-gdb-index.s
index 43505960498a2..b9f36d8f66083 100644
--- a/lld/test/ELF/comdat-discarded-gdb-index.s
+++ b/lld/test/ELF/comdat-discarded-gdb-index.s
@@ -1,6 +1,6 @@
 # REQUIRES: x86
 # RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o
-# RUN: ld.lld --gdb-index %t.o %t.o -o %t
+# RUN: ld.lld --gdb-index -e 0 %t.o %t.o -o /dev/null 2>&1 | count 0
 
 ## .debug_info has a relocation to .text.foo . The second %t.o is discarded.
 ## Check we don't error on the relocation.
@@ -48,6 +48,7 @@ foo:
   .byte   2              # Abbrev [2] DW_TAG_subprogram
   .asciz  "foo"          # DW_AT_name
   .byte   0
+  .byte   0
 .Lcu_end0:
 
 .section .debug_gnu_pubnames,"", at progbits


        


More information about the llvm-commits mailing list