diff options
Diffstat (limited to 'test/ELF/undef-broken-debug.test')
| -rw-r--r-- | test/ELF/undef-broken-debug.test | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/test/ELF/undef-broken-debug.test b/test/ELF/undef-broken-debug.test index 1238ebe70acae..b93d399f36c29 100644 --- a/test/ELF/undef-broken-debug.test +++ b/test/ELF/undef-broken-debug.test @@ -1,6 +1,6 @@ # REQUIRES: x86 # RUN: yaml2obj %s -o %t.o -# RUN: not ld.lld %t.o -o %t.exe 2>&1 | FileCheck %s +# RUN: not ld.lld %t.o -o /dev/null 2>&1 | FileCheck %s # The debug info has a broken relocation. Check that we don't crash # and still report the undefined symbol. @@ -40,6 +40,27 @@ Sections: - Offset: 0x0000000000000029 Symbol: bar Type: R_X86_64_64 + - Name: .debug_info + Type: SHT_PROGBITS + AddressAlign: 0x0000000000000001 + Content: 0C000000040000000000080100000000 + - Name: .rela.debug_info + Type: SHT_RELA + Link: .symtab + AddressAlign: 0x0000000000000008 + Info: .debug_info + Relocations: + - Offset: 0x0000000000000006 + Symbol: .debug_abbrev + Type: R_X86_64_32 + - Offset: 0x000000000000000C + Symbol: .debug_line + Type: R_X86_64_32 + - Name: .debug_abbrev + Type: SHT_PROGBITS + AddressAlign: 0x0000000000000001 + Content: '0111001017000000' + Symbols: Global: - Name: _start |
