diff options
author | Fangrui Song <i@maskray.me> | 2022-09-14 12:27:30 -0700 |
---|---|---|
committer | Tobias Hieta <tobias@hieta.se> | 2022-09-15 16:04:55 +0200 |
commit | 4936d7ce485292b10a7d18a22fa06fcab8f899f6 (patch) | |
tree | 75e4f488743cfa7cd43c261356066b5a4beb19fa /llvm | |
parent | 99882208e2346bee52e8a4fd182675d52e3b182c (diff) | |
download | llvm-4936d7ce485292b10a7d18a22fa06fcab8f899f6.zip llvm-4936d7ce485292b10a7d18a22fa06fcab8f899f6.tar.gz llvm-4936d7ce485292b10a7d18a22fa06fcab8f899f6.tar.bz2 |
[llvm-objdump][test] Add verneed-invalid.test
(cherry picked from commit 55a72dae1f996e4fb1528c1b6b1bff8550fec303)
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/test/tools/llvm-objdump/ELF/verneed-invalid.test | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-objdump/ELF/verneed-invalid.test b/llvm/test/tools/llvm-objdump/ELF/verneed-invalid.test new file mode 100644 index 0000000..30011f6 --- /dev/null +++ b/llvm/test/tools/llvm-objdump/ELF/verneed-invalid.test @@ -0,0 +1,25 @@ +# RUN: yaml2obj %s -o %t +# RUN: llvm-objdump -p %t 2>&1 | FileCheck %s --check-prefix=BROKEN-AUX -DFILE=%t + +# BROKEN-AUX: Version References: +# BROKEN-AUX-NEXT: required from : +# BROKEN-AUX-NEXT: 0x00000000 0x00 00 + +--- !ELF +FileHeader: + Class: ELFCLASS64 + Data: ELFDATA2LSB + Type: ET_EXEC +Sections: + - Name: .gnu.version + Type: SHT_GNU_versym + Flags: [ SHF_ALLOC ] + Entries: [ 2 ] + - Name: .gnu.version_r + Type: SHT_GNU_verneed + Flags: [ SHF_ALLOC ] + Info: 1 + AddressAlign: 4 +## The byte offset to the auxiliary entry is 0x11, i.e. it is not correctly aligned in memory. + Content: "0100010001000000110000000000000000000000" +DynamicSymbols: [] |