diff options
author | Fangrui Song <maskray@google.com> | 2019-09-06 09:23:17 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-09-06 09:23:17 +0000 |
commit | d20c41dd3185498a71746f7242092c697f356ae4 (patch) | |
tree | d367e15513716e45c5645e67660e22110693ab84 /llvm/test/Object | |
parent | f64f4886706b5f50c9feca349edcfae66dce08fa (diff) | |
download | bcm5719-llvm-d20c41dd3185498a71746f7242092c697f356ae4.tar.gz bcm5719-llvm-d20c41dd3185498a71746f7242092c697f356ae4.zip |
[yaml2obj] Rename SHOffset (e_shoff) field to SHOff. NFC
`struct Elf*_Shdr` has a field `sh_offset`, named `ShOffset` in
llvm::ELFYAML::Section. Rename SHOffset (e_shoff) to SHOff to prevent confusion.
Reviewed By: grimar
Differential Revision: https://reviews.llvm.org/D67254
llvm-svn: 371185
Diffstat (limited to 'llvm/test/Object')
-rw-r--r-- | llvm/test/Object/invalid.test | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/Object/invalid.test b/llvm/test/Object/invalid.test index 397c948001e..cbf770afbdc 100644 --- a/llvm/test/Object/invalid.test +++ b/llvm/test/Object/invalid.test @@ -597,7 +597,7 @@ Sections: - Type: SHT_NULL Size: 288230376151711744 -## Check the case when SHOffset is too large. SHOffset + sizeof(Elf_Shdr) overflows the uint64 type. +## Check the case when SHOff is too large. SHOff + sizeof(Elf_Shdr) overflows the uint64 type. # RUN: yaml2obj --docnum=28 %s -o %t28 # RUN: not llvm-readobj -h %t28 2>&1 | FileCheck -DFILE=%t28 --check-prefix=INVALID-SEC-NUM3 %s @@ -610,7 +610,7 @@ FileHeader: Data: ELFDATA2LSB Type: ET_REL Machine: EM_X86_64 - SHOffset: 0xffffffffffffffff + SHOff: 0xffffffffffffffff ## Check that llvm-objdump reports an error when it tries to dump a ## symbol name and .strtab is empty. |