[llvm] 297af06 - [llvm-readobj,yaml2obj,test] Test SHT_HEX_ORDERED
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 14 22:14:21 PDT 2024
Author: Fangrui Song
Date: 2024-03-14T22:14:16-07:00
New Revision: 297af060e26e13d35990e961648bd1a3c318f028
URL: https://github.com/llvm/llvm-project/commit/297af060e26e13d35990e961648bd1a3c318f028
DIFF: https://github.com/llvm/llvm-project/commit/297af060e26e13d35990e961648bd1a3c318f028.diff
LOG: [llvm-readobj,yaml2obj,test] Test SHT_HEX_ORDERED
The section type from 9f64604e74a46ea1c8a8bd258b4a4195f79ec6cb (2013)
was untested.
Added:
Modified:
llvm/test/tools/llvm-readobj/ELF/machine-specific-section-types.test
Removed:
################################################################################
diff --git a/llvm/test/tools/llvm-readobj/ELF/machine-specific-section-types.test b/llvm/test/tools/llvm-readobj/ELF/machine-specific-section-types.test
index f9524383e80b6d..8ad50c5158dbc3 100644
--- a/llvm/test/tools/llvm-readobj/ELF/machine-specific-section-types.test
+++ b/llvm/test/tools/llvm-readobj/ELF/machine-specific-section-types.test
@@ -17,6 +17,10 @@
# RUN: llvm-readobj --section-headers %t-aarch64.o | FileCheck %s --check-prefix=AARCH64-LLVM
# RUN: llvm-readelf --section-headers %t-aarch64.o | FileCheck %s --check-prefix=AARCH64-GNU
+# RUN: yaml2obj %s --docnum=5 -o %t-hexagon.o
+# RUN: llvm-readobj --section-headers %t-hexagon.o | FileCheck %s --check-prefix=HEXAGON-LLVM
+# RUN: llvm-readelf --section-headers %t-hexagon.o | FileCheck %s --check-prefix=HEXAGON-GNU
+
# ARM-LLVM: Name: exidx
# ARM-LLVM: Type: SHT_ARM_EXIDX
# ARM-LLVM: Name: preemptmap
@@ -64,6 +68,11 @@
# AARCH64-GNU: .memtag.globals.dynamic AARCH64_MEMTAG_GLOBALS_DYNAMIC
# AARCH64-GNU: .memtag.globals.static AARCH64_MEMTAG_GLOBALS_STATIC
+# HEXAGON-LLVM: Name: hexagon_ordered
+# HEXAGON-LLVM: Type: SHT_HEX_ORDERED
+
+# HEXAGON-GNU: hexagon_ordered HEX_ORDERED
+
--- !ELF
FileHeader:
Class: ELFCLASS64
@@ -122,3 +131,13 @@ Sections:
Type: SHT_AARCH64_MEMTAG_GLOBALS_DYNAMIC
- Name: .memtag.globals.static
Type: SHT_AARCH64_MEMTAG_GLOBALS_STATIC
+
+--- !ELF
+FileHeader:
+ Class: ELFCLASS32
+ Data: ELFDATA2LSB
+ Type: ET_REL
+ Machine: EM_HEXAGON
+Sections:
+ - Name: hexagon_ordered
+ Type: SHT_HEX_ORDERED
More information about the llvm-commits
mailing list