[llvm] [XCOFF][OBJECT] get symbol size by calling XCOFF interfaces (PR #67304)

Chen Zheng via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 26 23:20:57 PDT 2023


================
@@ -0,0 +1,146 @@
+; RUN: llc -filetype=obj -o %t -mtriple=powerpc-aix-ibm-xcoff < %s
+; RUN: llvm-symbolizer --obj=%t 'DATA 0x60' 'DATA 0x61' 'DATA 0x64' 'DATA 0X68' \
+; RUN:   'DATA 0x90' 'DATA 0x94' 'DATA 0X98' | FileCheck %s
+
+; CHECK: bss_global
+; CHECK-NEXT: 96 4
+; CHECK-NEXT: ??:?
+; CHECK-EMPTY:
+
+; CHECK: bss_global
----------------
chenzheng1030 wrote:

This is to test that we can symbolize a data symbol from any offset. For example line 5-8 is to test bss_global at offset 0(0x60), and line 10-13 is to test bss_global at offset 1(0x61).

https://github.com/llvm/llvm-project/pull/67304


More information about the llvm-commits mailing list