summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools
diff options
context:
space:
mode:
authorGeorgii Rymar <grimar@accesssoftek.com>2019-12-20 17:02:43 +0300
committerGeorgii Rymar <grimar@accesssoftek.com>2019-12-23 13:29:52 +0300
commitf027e1a68dacfb692b4f3e30abfda529d020d472 (patch)
tree5e6a3325773a7d591a337732665ad97c16319b1d /llvm/test/tools
parent1f985775566dbb7f7b05b923445c50a0e65daece (diff)
downloadbcm5719-llvm-f027e1a68dacfb692b4f3e30abfda529d020d472.tar.gz
bcm5719-llvm-f027e1a68dacfb692b4f3e30abfda529d020d472.zip
[yaml2obj] - Allow using an arbitrary value for OSABI.
There was no way to set an unsupported or unknown OS ABI. With this patch it is possible to use any numeric value. Differential revision: https://reviews.llvm.org/D71765
Diffstat (limited to 'llvm/test/tools')
-rw-r--r--llvm/test/tools/yaml2obj/ELF/header-osabi.yaml13
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/tools/yaml2obj/ELF/header-osabi.yaml b/llvm/test/tools/yaml2obj/ELF/header-osabi.yaml
index 6a4b9ab30e5..bd552d3a306 100644
--- a/llvm/test/tools/yaml2obj/ELF/header-osabi.yaml
+++ b/llvm/test/tools/yaml2obj/ELF/header-osabi.yaml
@@ -325,3 +325,16 @@ FileHeader:
Type: ET_REL
Machine: EM_X86_64
OSABI: ELFOSABI_STANDALONE
+
+## Test we can use an arbitrary number for OSABI.
+# RUN: yaml2obj %s --docnum=27 -o %t.number
+# RUN: llvm-readobj --file-headers %t.number | FileCheck %s --check-prefix=OSABI-NUMBER
+# OSABI-NUMBER: OS/ABI: 0xFE
+
+--- !ELF
+FileHeader:
+ Class: ELFCLASS64
+ Data: ELFDATA2LSB
+ Type: ET_REL
+ Machine: EM_X86_64
+ OSABI: 0xFE
OpenPOWER on IntegriCloud