A previous patch introduced a common function used to extract offloading binaries from an image. Therefore we no longer need to duplicate the functionality in the `llvm-objdump` implementation. Functionally, this removes the old warning behaviour when given malformed input. This has been changed to a hard error, which is effectively the same. This required a slight tweak in the linker wrapper to filter out the user passing shared objects directly. Reviewed By: tra Differential Revision: https://reviews.llvm.org/D136796
19 lines
598 B
Plaintext
19 lines
598 B
Plaintext
# Test to check if we fail to get the section contents.
|
|
# RUN: yaml2obj %s -o %t
|
|
# RUN: not llvm-objdump --offloading %t 2>&1 | FileCheck -DFILENAME=%t %s
|
|
|
|
!ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2LSB
|
|
Type: ET_EXEC
|
|
Sections:
|
|
- Name: .llvm.offloading
|
|
Type: SHT_LLVM_OFFLOADING
|
|
Flags: [ SHF_EXCLUDE ]
|
|
Address: 0x0
|
|
ShOffset: 0x99999
|
|
AddressAlign: 0x0000000000000008
|
|
|
|
# CHECK: error: '[[FILENAME]]': while extracting offloading files: The end of the file was unexpectedly encountered
|