Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PAC][llvm-readobj][AArch64] Move PAuth GOT relocs out of private space #118214

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

kovdan01
Copy link
Contributor

@kovdan01 kovdan01 commented Dec 1, 2024

Apply change from the spec ARM-software/abi-aa#300

@kovdan01 kovdan01 self-assigned this Dec 1, 2024
@kovdan01 kovdan01 marked this pull request as ready for review December 1, 2024 14:32
@llvmbot
Copy link
Member

llvmbot commented Dec 1, 2024

@llvm/pr-subscribers-llvm-binary-utilities

Author: Daniil Kovalev (kovdan01)

Changes

Apply change from the spec ARM-software/abi-aa#300


Full diff: https://github.com/llvm/llvm-project/pull/118214.diff

2 Files Affected:

  • (modified) llvm/include/llvm/BinaryFormat/ELFRelocs/AArch64.def (+20-20)
  • (modified) llvm/test/tools/llvm-readobj/ELF/reloc-types-aarch64.test (+30-30)
diff --git a/llvm/include/llvm/BinaryFormat/ELFRelocs/AArch64.def b/llvm/include/llvm/BinaryFormat/ELFRelocs/AArch64.def
index f28a4646cc6da1..05b79eae573f7a 100644
--- a/llvm/include/llvm/BinaryFormat/ELFRelocs/AArch64.def
+++ b/llvm/include/llvm/BinaryFormat/ELFRelocs/AArch64.def
@@ -143,27 +143,27 @@ ELF_RELOC(R_AARCH64_IRELATIVE,                       0x408)
 // PAuthABI static and dynamic relocations: defined in pauthabielf64,
 // https://github.com/ARM-software/abi-aa
 ELF_RELOC(R_AARCH64_AUTH_ABS64,                      0x244)
+ELF_RELOC(R_AARCH64_AUTH_MOVW_GOTOFF_G0,             0x245)
+ELF_RELOC(R_AARCH64_AUTH_MOVW_GOTOFF_G0_NC,          0x246)
+ELF_RELOC(R_AARCH64_AUTH_MOVW_GOTOFF_G1,             0x247)
+ELF_RELOC(R_AARCH64_AUTH_MOVW_GOTOFF_G1_NC,          0x248)
+ELF_RELOC(R_AARCH64_AUTH_MOVW_GOTOFF_G2,             0x249)
+ELF_RELOC(R_AARCH64_AUTH_MOVW_GOTOFF_G2_NC,          0x24a)
+ELF_RELOC(R_AARCH64_AUTH_MOVW_GOTOFF_G3,             0x24b)
+ELF_RELOC(R_AARCH64_AUTH_GOT_LD_PREL19,              0x24c)
+ELF_RELOC(R_AARCH64_AUTH_LD64_GOTOFF_LO15,           0x24d)
+ELF_RELOC(R_AARCH64_AUTH_ADR_GOT_PAGE,               0x24e)
+ELF_RELOC(R_AARCH64_AUTH_LD64_GOT_LO12_NC,           0x24f)
+ELF_RELOC(R_AARCH64_AUTH_LD64_GOTPAGE_LO15,          0x250)
+ELF_RELOC(R_AARCH64_AUTH_GOT_ADD_LO12_NC,            0x251)
+ELF_RELOC(R_AARCH64_AUTH_GOT_ADR_PREL_LO21,          0x252)
+ELF_RELOC(R_AARCH64_AUTH_TLSDESC_ADR_PAGE21,         0x253)
+ELF_RELOC(R_AARCH64_AUTH_TLSDESC_LD64_LO12,          0x254)
+ELF_RELOC(R_AARCH64_AUTH_TLSDESC_ADD_LO12,           0x255)
 ELF_RELOC(R_AARCH64_AUTH_RELATIVE,                   0x411)
-ELF_RELOC(R_AARCH64_AUTH_MOVW_GOTOFF_G0,             0x8110)
-ELF_RELOC(R_AARCH64_AUTH_MOVW_GOTOFF_G0_NC,          0x8111)
-ELF_RELOC(R_AARCH64_AUTH_MOVW_GOTOFF_G1,             0x8112)
-ELF_RELOC(R_AARCH64_AUTH_MOVW_GOTOFF_G1_NC,          0x8113)
-ELF_RELOC(R_AARCH64_AUTH_MOVW_GOTOFF_G2,             0x8114)
-ELF_RELOC(R_AARCH64_AUTH_MOVW_GOTOFF_G2_NC,          0x8115)
-ELF_RELOC(R_AARCH64_AUTH_MOVW_GOTOFF_G3,             0x8116)
-ELF_RELOC(R_AARCH64_AUTH_GOT_LD_PREL19,              0x8117)
-ELF_RELOC(R_AARCH64_AUTH_LD64_GOTOFF_LO15,           0x8118)
-ELF_RELOC(R_AARCH64_AUTH_ADR_GOT_PAGE,               0x8119)
-ELF_RELOC(R_AARCH64_AUTH_LD64_GOT_LO12_NC,           0x811a)
-ELF_RELOC(R_AARCH64_AUTH_LD64_GOTPAGE_LO15,          0x811b)
-ELF_RELOC(R_AARCH64_AUTH_GOT_ADD_LO12_NC,            0x811c)
-ELF_RELOC(R_AARCH64_AUTH_GOT_ADR_PREL_LO21,          0x811d)
-ELF_RELOC(R_AARCH64_AUTH_TLSDESC_ADR_PAGE21,         0x811e)
-ELF_RELOC(R_AARCH64_AUTH_TLSDESC_LD64_LO12,          0x811f)
-ELF_RELOC(R_AARCH64_AUTH_TLSDESC_ADD_LO12,           0x8120)
-ELF_RELOC(R_AARCH64_AUTH_GLOB_DAT,                   0xe201)
-ELF_RELOC(R_AARCH64_AUTH_TLSDESC,                    0xe202)
-ELF_RELOC(R_AARCH64_AUTH_IRELATIVE,                  0xe203)
+ELF_RELOC(R_AARCH64_AUTH_GLOB_DAT,                   0x412)
+ELF_RELOC(R_AARCH64_AUTH_TLSDESC,                    0x413)
+ELF_RELOC(R_AARCH64_AUTH_IRELATIVE,                  0x414)
 
 // ELF32
 // ELF_RELOC(R_AARCH64_P32_NONE,                         0)
diff --git a/llvm/test/tools/llvm-readobj/ELF/reloc-types-aarch64.test b/llvm/test/tools/llvm-readobj/ELF/reloc-types-aarch64.test
index 458761a2ba6b4d..d7fe77cf658af0 100644
--- a/llvm/test/tools/llvm-readobj/ELF/reloc-types-aarch64.test
+++ b/llvm/test/tools/llvm-readobj/ELF/reloc-types-aarch64.test
@@ -120,6 +120,23 @@
 # CHECK: Type: R_AARCH64_TLSLD_LDST128_DTPREL_LO12 (572)
 # CHECK: Type: R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC (573)
 # CHECK: Type: R_AARCH64_AUTH_ABS64 (580)
+# CHECK: Type: R_AARCH64_AUTH_MOVW_GOTOFF_G0 (581)
+# CHECK: Type: R_AARCH64_AUTH_MOVW_GOTOFF_G0_NC (582)
+# CHECK: Type: R_AARCH64_AUTH_MOVW_GOTOFF_G1 (583)
+# CHECK: Type: R_AARCH64_AUTH_MOVW_GOTOFF_G1_NC (584)
+# CHECK: Type: R_AARCH64_AUTH_MOVW_GOTOFF_G2 (585)
+# CHECK: Type: R_AARCH64_AUTH_MOVW_GOTOFF_G2_NC (586)
+# CHECK: Type: R_AARCH64_AUTH_MOVW_GOTOFF_G3 (587)
+# CHECK: Type: R_AARCH64_AUTH_GOT_LD_PREL19 (588)
+# CHECK: Type: R_AARCH64_AUTH_LD64_GOTOFF_LO15 (589)
+# CHECK: Type: R_AARCH64_AUTH_ADR_GOT_PAGE (590)
+# CHECK: Type: R_AARCH64_AUTH_LD64_GOT_LO12_NC (591)
+# CHECK: Type: R_AARCH64_AUTH_LD64_GOTPAGE_LO15 (592)
+# CHECK: Type: R_AARCH64_AUTH_GOT_ADD_LO12_NC (593)
+# CHECK: Type: R_AARCH64_AUTH_GOT_ADR_PREL_LO21 (594)
+# CHECK: Type: R_AARCH64_AUTH_TLSDESC_ADR_PAGE21 (595)
+# CHECK: Type: R_AARCH64_AUTH_TLSDESC_LD64_LO12 (596)
+# CHECK: Type: R_AARCH64_AUTH_TLSDESC_ADD_LO12 (597)
 # CHECK: Type: R_AARCH64_COPY (1024)
 # CHECK: Type: R_AARCH64_GLOB_DAT (1025)
 # CHECK: Type: R_AARCH64_JUMP_SLOT (1026)
@@ -130,26 +147,9 @@
 # CHECK: Type: R_AARCH64_TLSDESC (1031)
 # CHECK: Type: R_AARCH64_IRELATIVE (1032)
 # CHECK: Type: R_AARCH64_AUTH_RELATIVE (1041)
-# CHECK: Type: R_AARCH64_AUTH_MOVW_GOTOFF_G0 (33040)
-# CHECK: Type: R_AARCH64_AUTH_MOVW_GOTOFF_G0_NC (33041)
-# CHECK: Type: R_AARCH64_AUTH_MOVW_GOTOFF_G1 (33042)
-# CHECK: Type: R_AARCH64_AUTH_MOVW_GOTOFF_G1_NC (33043)
-# CHECK: Type: R_AARCH64_AUTH_MOVW_GOTOFF_G2 (33044)
-# CHECK: Type: R_AARCH64_AUTH_MOVW_GOTOFF_G2_NC (33045)
-# CHECK: Type: R_AARCH64_AUTH_MOVW_GOTOFF_G3 (33046)
-# CHECK: Type: R_AARCH64_AUTH_GOT_LD_PREL19 (33047)
-# CHECK: Type: R_AARCH64_AUTH_LD64_GOTOFF_LO15 (33048)
-# CHECK: Type: R_AARCH64_AUTH_ADR_GOT_PAGE (33049)
-# CHECK: Type: R_AARCH64_AUTH_LD64_GOT_LO12_NC (33050)
-# CHECK: Type: R_AARCH64_AUTH_LD64_GOTPAGE_LO15 (33051)
-# CHECK: Type: R_AARCH64_AUTH_GOT_ADD_LO12_NC (33052)
-# CHECK: Type: R_AARCH64_AUTH_GOT_ADR_PREL_LO21 (33053)
-# CHECK: Type: R_AARCH64_AUTH_TLSDESC_ADR_PAGE21 (33054)
-# CHECK: Type: R_AARCH64_AUTH_TLSDESC_LD64_LO12 (33055)
-# CHECK: Type: R_AARCH64_AUTH_TLSDESC_ADD_LO12 (33056)
-# CHECK: Type: R_AARCH64_AUTH_GLOB_DAT (57857)
-# CHECK: Type: R_AARCH64_AUTH_TLSDESC (57858)
-# CHECK: Type: R_AARCH64_AUTH_IRELATIVE (57859)
+# CHECK: Type: R_AARCH64_AUTH_GLOB_DAT (1042)
+# CHECK: Type: R_AARCH64_AUTH_TLSDESC (1043)
+# CHECK: Type: R_AARCH64_AUTH_IRELATIVE (1044)
 
 --- !ELF
 FileHeader:
@@ -277,16 +277,6 @@ Sections:
       - Type: R_AARCH64_TLSLD_LDST128_DTPREL_LO12
       - Type: R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC
       - Type: R_AARCH64_AUTH_ABS64
-      - Type: R_AARCH64_COPY
-      - Type: R_AARCH64_GLOB_DAT
-      - Type: R_AARCH64_JUMP_SLOT
-      - Type: R_AARCH64_RELATIVE
-      - Type: R_AARCH64_TLS_DTPMOD64
-      - Type: R_AARCH64_TLS_DTPREL64
-      - Type: R_AARCH64_TLS_TPREL64
-      - Type: R_AARCH64_TLSDESC
-      - Type: R_AARCH64_IRELATIVE
-      - Type: R_AARCH64_AUTH_RELATIVE
       - Type: R_AARCH64_AUTH_MOVW_GOTOFF_G0
       - Type: R_AARCH64_AUTH_MOVW_GOTOFF_G0_NC
       - Type: R_AARCH64_AUTH_MOVW_GOTOFF_G1
@@ -304,6 +294,16 @@ Sections:
       - Type: R_AARCH64_AUTH_TLSDESC_ADR_PAGE21
       - Type: R_AARCH64_AUTH_TLSDESC_LD64_LO12
       - Type: R_AARCH64_AUTH_TLSDESC_ADD_LO12
+      - Type: R_AARCH64_COPY
+      - Type: R_AARCH64_GLOB_DAT
+      - Type: R_AARCH64_JUMP_SLOT
+      - Type: R_AARCH64_RELATIVE
+      - Type: R_AARCH64_TLS_DTPMOD64
+      - Type: R_AARCH64_TLS_DTPREL64
+      - Type: R_AARCH64_TLS_TPREL64
+      - Type: R_AARCH64_TLSDESC
+      - Type: R_AARCH64_IRELATIVE
+      - Type: R_AARCH64_AUTH_RELATIVE
       - Type: R_AARCH64_AUTH_GLOB_DAT
       - Type: R_AARCH64_AUTH_TLSDESC
       - Type: R_AARCH64_AUTH_IRELATIVE

@kovdan01 kovdan01 changed the title [PAC][readobj] Move PAuth GOT relocs out of private space [PAC][readobj][ELF][AArch64] Move PAuth GOT relocs out of private space Dec 1, 2024
Copy link
Member

@MaskRay MaskRay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For llvm-readobj, we prefer [llvm-readobj] instead of [readobj].

[PAC] and [ELF] are probably less valuable tags. I'd remove them if I authored the patch.

@kovdan01 kovdan01 changed the title [PAC][readobj][ELF][AArch64] Move PAuth GOT relocs out of private space [PAC][llvm-readobj][AArch64] Move PAuth GOT relocs out of private space Dec 1, 2024
@kovdan01 kovdan01 merged commit a9ad9e2 into llvm:main Dec 2, 2024
12 checks passed
@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 2, 2024

LLVM Buildbot has detected a new failure on builder clang-ppc64le-linux-multistage running on ppc64le-clang-multistage-test while building llvm at step 11 "ninja check 2".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/76/builds/4952

Here is the relevant piece of the build log for the reference
Step 11 (ninja check 2) failure: stage 2 checked (failure)
******************** TEST 'ORC-powerpc64le-linux :: TestCases/Linux/ppc64/trivial-tls-pwr10.test' FAILED ********************
Exit Code: 134

Command Output (stderr):
--
RUN: at line 1: rm -rf /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/runtimes/runtimes-bins/compiler-rt/test/orc/POWERPC64LELinuxConfig/TestCases/Linux/ppc64/Output/trivial-tls-pwr10.test.tmp && mkdir -p /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/runtimes/runtimes-bins/compiler-rt/test/orc/POWERPC64LELinuxConfig/TestCases/Linux/ppc64/Output/trivial-tls-pwr10.test.tmp
+ rm -rf /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/runtimes/runtimes-bins/compiler-rt/test/orc/POWERPC64LELinuxConfig/TestCases/Linux/ppc64/Output/trivial-tls-pwr10.test.tmp
+ mkdir -p /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/runtimes/runtimes-bins/compiler-rt/test/orc/POWERPC64LELinuxConfig/TestCases/Linux/ppc64/Output/trivial-tls-pwr10.test.tmp
RUN: at line 2: /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/./bin/clang  --driver-mode=g++  -m64 -fno-function-sections  -fPIC -c -o /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/runtimes/runtimes-bins/compiler-rt/test/orc/POWERPC64LELinuxConfig/TestCases/Linux/ppc64/Output/trivial-tls-pwr10.test.tmp/main.o /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/compiler-rt/test/orc/TestCases/Linux/ppc64/Inputs/trivial-tls-main.cpp
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/./bin/clang --driver-mode=g++ -m64 -fno-function-sections -fPIC -c -o /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/runtimes/runtimes-bins/compiler-rt/test/orc/POWERPC64LELinuxConfig/TestCases/Linux/ppc64/Output/trivial-tls-pwr10.test.tmp/main.o /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/compiler-rt/test/orc/TestCases/Linux/ppc64/Inputs/trivial-tls-main.cpp
RUN: at line 3: /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/./bin/clang  --driver-mode=g++  -m64 -fno-function-sections  -fPIC -c -o /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/runtimes/runtimes-bins/compiler-rt/test/orc/POWERPC64LELinuxConfig/TestCases/Linux/ppc64/Output/trivial-tls-pwr10.test.tmp/pwr10.o /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/compiler-rt/test/orc/TestCases/Linux/ppc64/Inputs/trivial-tls-pwr10.cpp
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/./bin/clang --driver-mode=g++ -m64 -fno-function-sections -fPIC -c -o /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/runtimes/runtimes-bins/compiler-rt/test/orc/POWERPC64LELinuxConfig/TestCases/Linux/ppc64/Output/trivial-tls-pwr10.test.tmp/pwr10.o /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/compiler-rt/test/orc/TestCases/Linux/ppc64/Inputs/trivial-tls-pwr10.cpp
RUN: at line 4: /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/./bin/llvm-jitlink -orc-runtime=/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/./lib/../lib/clang/20/lib/powerpc64le-unknown-linux-gnu/liborc_rt.a /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/runtimes/runtimes-bins/compiler-rt/test/orc/POWERPC64LELinuxConfig/TestCases/Linux/ppc64/Output/trivial-tls-pwr10.test.tmp/main.o /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/runtimes/runtimes-bins/compiler-rt/test/orc/POWERPC64LELinuxConfig/TestCases/Linux/ppc64/Output/trivial-tls-pwr10.test.tmp/pwr10.o
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/./bin/llvm-jitlink -orc-runtime=/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/./lib/../lib/clang/20/lib/powerpc64le-unknown-linux-gnu/liborc_rt.a /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/runtimes/runtimes-bins/compiler-rt/test/orc/POWERPC64LELinuxConfig/TestCases/Linux/ppc64/Output/trivial-tls-pwr10.test.tmp/main.o /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/runtimes/runtimes-bins/compiler-rt/test/orc/POWERPC64LELinuxConfig/TestCases/Linux/ppc64/Output/trivial-tls-pwr10.test.tmp/pwr10.o
llvm-jitlink: /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/lib/ExecutionEngine/Orc/Core.cpp:3324: Expected<JITDylib::AsynchronousSymbolQuerySet> llvm::orc::ExecutionSession::IL_emit(MaterializationResponsibility &, EDUInfosMap): Assertion `!DepMI.DefiningEDU->Dependencies.empty() && "Emitted symbol has empty dependencies (should be ready)"' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.	Program arguments: /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/./bin/llvm-jitlink -orc-runtime=/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/./lib/../lib/clang/20/lib/powerpc64le-unknown-linux-gnu/liborc_rt.a /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/runtimes/runtimes-bins/compiler-rt/test/orc/POWERPC64LELinuxConfig/TestCases/Linux/ppc64/Output/trivial-tls-pwr10.test.tmp/main.o /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/runtimes/runtimes-bins/compiler-rt/test/orc/POWERPC64LELinuxConfig/TestCases/Linux/ppc64/Output/trivial-tls-pwr10.test.tmp/pwr10.o
 #0 0x00007fff7e2eb480 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/bin/../lib/libLLVMSupport.so.20.0git+0x20b480)
 #1 0x00007fff7e2ebbd4 PrintStackTraceSignalHandler(void*) Signals.cpp:0:0
 #2 0x00007fff7e2e85d4 llvm::sys::RunSignalHandlers() (/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/bin/../lib/libLLVMSupport.so.20.0git+0x2085d4)
 #3 0x00007fff7e2ebeb4 SignalHandler(int) Signals.cpp:0:0
 #4 0x00007fff81d904d8 (linux-vdso64.so.1+0x4d8)
 #5 0x00007fff7db5a448 raise (/lib64/libc.so.6+0x4a448)
 #6 0x00007fff7db34a54 abort (/lib64/libc.so.6+0x24a54)
 #7 0x00007fff7db4dc30 __assert_fail_base (/lib64/libc.so.6+0x3dc30)
 #8 0x00007fff7db4dcd4 __assert_fail (/lib64/libc.so.6+0x3dcd4)
 #9 0x00007fff804890b8 llvm::orc::ExecutionSession::IL_emit(llvm::orc::MaterializationResponsibility&, llvm::DenseMap<llvm::orc::JITDylib::EmissionDepUnit*, llvm::orc::JITDylib::EmissionDepUnitInfo, llvm::DenseMapInfo<llvm::orc::JITDylib::EmissionDepUnit*, void>, llvm::detail::DenseMapPair<llvm::orc::JITDylib::EmissionDepUnit*, llvm::orc::JITDylib::EmissionDepUnitInfo>>) (/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/bin/../lib/libLLVMOrcJIT.so.20.0git+0xb90b8)
#10 0x00007fff8048a0a4 llvm::orc::ExecutionSession::OL_notifyEmitted(llvm::orc::MaterializationResponsibility&, llvm::ArrayRef<llvm::orc::SymbolDependenceGroup>) (/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/bin/../lib/libLLVMOrcJIT.so.20.0git+0xba0a4)
#11 0x00007fff8059aa34 llvm::orc::ObjectLinkingLayerJITLinkContext::notifyFinalized(llvm::jitlink::JITLinkMemoryManager::FinalizedAlloc) (/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/bin/../lib/libLLVMOrcJIT.so.20.0git+0x1caa34)
#12 0x00007fff7ea9fdb8 llvm::jitlink::JITLinkerBase::linkPhase4(std::unique_ptr<llvm::jitlink::JITLinkerBase, std::default_delete<llvm::jitlink::JITLinkerBase>>, llvm::Expected<llvm::jitlink::JITLinkMemoryManager::FinalizedAlloc>) (/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/bin/../lib/libLLVMJITLink.so.20.0git+0x3fdb8)
#13 0x00007fff7eaa1ed8 void llvm::detail::UniqueFunctionBase<void, llvm::Expected<llvm::jitlink::JITLinkMemoryManager::FinalizedAlloc>>::CallImpl<llvm::jitlink::JITLinkerBase::linkPhase3(std::unique_ptr<llvm::jitlink::JITLinkerBase, std::default_delete<llvm::jitlink::JITLinkerBase>>, llvm::Expected<llvm::DenseMap<llvm::StringRef, llvm::orc::ExecutorSymbolDef, llvm::DenseMapInfo<llvm::StringRef, void>, llvm::detail::DenseMapPair<llvm::StringRef, llvm::orc::ExecutorSymbolDef>>>)::$_0>(void*, llvm::Expected<llvm::jitlink::JITLinkMemoryManager::FinalizedAlloc>&) JITLinkGeneric.cpp:0:0
#14 0x00007fff80572e28 llvm::orc::MapperJITLinkMemoryManager::InFlightAlloc::finalize(llvm::unique_function<void (llvm::Expected<llvm::jitlink::JITLinkMemoryManager::FinalizedAlloc>)>)::'lambda'(llvm::Expected<llvm::orc::ExecutorAddr>)::operator()(llvm::Expected<llvm::orc::ExecutorAddr>) (/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/bin/../lib/libLLVMOrcJIT.so.20.0git+0x1a2e28)
#15 0x00007fff80572b18 void llvm::detail::UniqueFunctionBase<void, llvm::Expected<llvm::orc::ExecutorAddr>>::CallImpl<llvm::orc::MapperJITLinkMemoryManager::InFlightAlloc::finalize(llvm::unique_function<void (llvm::Expected<llvm::jitlink::JITLinkMemoryManager::FinalizedAlloc>)>)::'lambda'(llvm::Expected<llvm::orc::ExecutorAddr>)>(void*, llvm::Expected<llvm::orc::ExecutorAddr>&) (/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/bin/../lib/libLLVMOrcJIT.so.20.0git+0x1a2b18)
#16 0x00007fff80575108 llvm::orc::InProcessMemoryMapper::initialize(llvm::orc::MemoryMapper::AllocInfo&, llvm::unique_function<void (llvm::Expected<llvm::orc::ExecutorAddr>)>) (/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/bin/../lib/libLLVMOrcJIT.so.20.0git+0x1a5108)
#17 0x00007fff80572758 llvm::orc::MapperJITLinkMemoryManager::InFlightAlloc::finalize(llvm::unique_function<void (llvm::Expected<llvm::jitlink::JITLinkMemoryManager::FinalizedAlloc>)>) (/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/bin/../lib/libLLVMOrcJIT.so.20.0git+0x1a2758)
#18 0x00007fff7ea9f09c llvm::jitlink::JITLinkerBase::linkPhase3(std::unique_ptr<llvm::jitlink::JITLinkerBase, std::default_delete<llvm::jitlink::JITLinkerBase>>, llvm::Expected<llvm::DenseMap<llvm::StringRef, llvm::orc::ExecutorSymbolDef, llvm::DenseMapInfo<llvm::StringRef, void>, llvm::detail::DenseMapPair<llvm::StringRef, llvm::orc::ExecutorSymbolDef>>>) (/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/bin/../lib/libLLVMJITLink.so.20.0git+0x3f09c)
#19 0x00007fff7eaa1d48 std::unique_ptr<llvm::jitlink::JITLinkAsyncLookupContinuation, std::default_delete<llvm::jitlink::JITLinkAsyncLookupContinuation>> llvm::jitlink::createLookupContinuation<llvm::jitlink::JITLinkerBase::linkPhase2(std::unique_ptr<llvm::jitlink::JITLinkerBase, std::default_delete<llvm::jitlink::JITLinkerBase>>, llvm::Expected<std::unique_ptr<llvm::jitlink::JITLinkMemoryManager::InFlightAlloc, std::default_delete<llvm::jitlink::JITLinkMemoryManager::InFlightAlloc>>>)::$_0>(llvm::jitlink::JITLinkerBase::linkPhase2(std::unique_ptr<llvm::jitlink::JITLinkerBase, std::default_delete<llvm::jitlink::JITLinkerBase>>, llvm::Expected<std::unique_ptr<llvm::jitlink::JITLinkMemoryManager::InFlightAlloc, std::default_delete<llvm::jitlink::JITLinkMemoryManager::InFlightAlloc>>>)::$_0)::Impl::run(llvm::Expected<llvm::DenseMap<llvm::StringRef, llvm::orc::ExecutorSymbolDef, llvm::DenseMapInfo<llvm::StringRef, void>, llvm::detail::DenseMapPair<llvm::StringRef, llvm::orc::ExecutorSymbolDef>>>) JITLinkGeneric.cpp:0:0
#20 0x00007fff8059b624 llvm::orc::ObjectLinkingLayerJITLinkContext::lookup(llvm::DenseMap<llvm::StringRef, llvm::jitlink::SymbolLookupFlags, llvm::DenseMapInfo<llvm::StringRef, void>, llvm::detail::DenseMapPair<llvm::StringRef, llvm::jitlink::SymbolLookupFlags>> const&, std::unique_ptr<llvm::jitlink::JITLinkAsyncLookupContinuation, std::default_delete<llvm::jitlink::JITLinkAsyncLookupContinuation>>)::'lambda'(llvm::Expected<llvm::DenseMap<llvm::orc::SymbolStringPtr, llvm::orc::ExecutorSymbolDef, llvm::DenseMapInfo<llvm::orc::SymbolStringPtr, void>, llvm::detail::DenseMapPair<llvm::orc::SymbolStringPtr, llvm::orc::ExecutorSymbolDef>>>)::operator()(llvm::Expected<llvm::DenseMap<llvm::orc::SymbolStringPtr, llvm::orc::ExecutorSymbolDef, llvm::DenseMapInfo<llvm::orc::SymbolStringPtr, void>, llvm::detail::DenseMapPair<llvm::orc::SymbolStringPtr, llvm::orc::ExecutorSymbolDef>>>) (/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/bin/../lib/libLLVMOrcJIT.so.20.0git+0x1cb624)
#21 0x00007fff8059b298 void llvm::detail::UniqueFunctionBase<void, llvm::Expected<llvm::DenseMap<llvm::orc::SymbolStringPtr, llvm::orc::ExecutorSymbolDef, llvm::DenseMapInfo<llvm::orc::SymbolStringPtr, void>, llvm::detail::DenseMapPair<llvm::orc::SymbolStringPtr, llvm::orc::ExecutorSymbolDef>>>>::CallImpl<llvm::orc::ObjectLinkingLayerJITLinkContext::lookup(llvm::DenseMap<llvm::StringRef, llvm::jitlink::SymbolLookupFlags, llvm::DenseMapInfo<llvm::StringRef, void>, llvm::detail::DenseMapPair<llvm::StringRef, llvm::jitlink::SymbolLookupFlags>> const&, std::unique_ptr<llvm::jitlink::JITLinkAsyncLookupContinuation, std::default_delete<llvm::jitlink::JITLinkAsyncLookupContinuation>>)::'lambda'(llvm::Expected<llvm::DenseMap<llvm::orc::SymbolStringPtr, llvm::orc::ExecutorSymbolDef, llvm::DenseMapInfo<llvm::orc::SymbolStringPtr, void>, llvm::detail::DenseMapPair<llvm::orc::SymbolStringPtr, llvm::orc::ExecutorSymbolDef>>>)>(void*, llvm::Expected<llvm::DenseMap<llvm::orc::SymbolStringPtr, llvm::orc::ExecutorSymbolDef, llvm::DenseMapInfo<llvm::orc::SymbolStringPtr, void>, llvm::detail::DenseMapPair<llvm::orc::SymbolStringPtr, llvm::orc::ExecutorSymbolDef>>>&) (/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/bin/../lib/libLLVMOrcJIT.so.20.0git+0x1cb298)
#22 0x00007fff8049a848 llvm::orc::AsynchronousSymbolQuery::handleComplete(llvm::orc::ExecutionSession&)::RunQueryCompleteTask::run() Core.cpp:0:0
#23 0x00007fff805da9cc llvm::orc::InPlaceTaskDispatcher::dispatch(std::unique_ptr<llvm::orc::Task, std::default_delete<llvm::orc::Task>>) (/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/bin/../lib/libLLVMOrcJIT.so.20.0git+0x20a9cc)
#24 0x00007fff80455c34 llvm::orc::ExecutionSession::dispatchTask(std::unique_ptr<llvm::orc::Task, std::default_delete<llvm::orc::Task>>) (/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/bin/../lib/libLLVMOrcJIT.so.20.0git+0x85c34)
#25 0x00007fff80455ab8 llvm::orc::AsynchronousSymbolQuery::handleComplete(llvm::orc::ExecutionSession&) (/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/bin/../lib/libLLVMOrcJIT.so.20.0git+0x85ab8)
#26 0x00007fff80462948 llvm::orc::JITDylib::resolve(llvm::orc::MaterializationResponsibility&, llvm::DenseMap<llvm::orc::SymbolStringPtr, llvm::orc::ExecutorSymbolDef, llvm::DenseMapInfo<llvm::orc::SymbolStringPtr, void>, llvm::detail::DenseMapPair<llvm::orc::SymbolStringPtr, llvm::orc::ExecutorSymbolDef>> const&) (/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/bin/../lib/libLLVMOrcJIT.so.20.0git+0x92948)
#27 0x00007fff80479c7c llvm::orc::ExecutionSession::OL_notifyResolved(llvm::orc::MaterializationResponsibility&, llvm::DenseMap<llvm::orc::SymbolStringPtr, llvm::orc::ExecutorSymbolDef, llvm::DenseMapInfo<llvm::orc::SymbolStringPtr, void>, llvm::detail::DenseMapPair<llvm::orc::SymbolStringPtr, llvm::orc::ExecutorSymbolDef>> const&) (/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/bin/../lib/libLLVMOrcJIT.so.20.0git+0xa9c7c)
#28 0x00007fff8049cb24 void llvm::detail::UniqueFunctionBase<void, llvm::Expected<llvm::DenseMap<llvm::orc::SymbolStringPtr, llvm::orc::ExecutorSymbolDef, llvm::DenseMapInfo<llvm::orc::SymbolStringPtr, void>, llvm::detail::DenseMapPair<llvm::orc::SymbolStringPtr, llvm::orc::ExecutorSymbolDef>>>>::CallImpl<llvm::orc::ReExportsMaterializationUnit::materialize(std::unique_ptr<llvm::orc::MaterializationResponsibility, std::default_delete<llvm::orc::MaterializationResponsibility>>)::$_2>(void*, llvm::Expected<llvm::DenseMap<llvm::orc::SymbolStringPtr, llvm::orc::ExecutorSymbolDef, llvm::DenseMapInfo<llvm::orc::SymbolStringPtr, void>, llvm::detail::DenseMapPair<llvm::orc::SymbolStringPtr, llvm::orc::ExecutorSymbolDef>>>&) Core.cpp:0:0
#29 0x00007fff8049a848 llvm::orc::AsynchronousSymbolQuery::handleComplete(llvm::orc::ExecutionSession&)::RunQueryCompleteTask::run() Core.cpp:0:0
#30 0x00007fff805da9cc llvm::orc::InPlaceTaskDispatcher::dispatch(std::unique_ptr<llvm::orc::Task, std::default_delete<llvm::orc::Task>>) (/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/bin/../lib/libLLVMOrcJIT.so.20.0git+0x20a9cc)
#31 0x00007fff80455c34 llvm::orc::ExecutionSession::dispatchTask(std::unique_ptr<llvm::orc::Task, std::default_delete<llvm::orc::Task>>) (/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/bin/../lib/libLLVMOrcJIT.so.20.0git+0x85c34)
...

kovdan01 added a commit that referenced this pull request Dec 4, 2024
kovdan01 added a commit that referenced this pull request Dec 4, 2024
kovdan01 added a commit that referenced this pull request Dec 4, 2024
kovdan01 added a commit that referenced this pull request Dec 4, 2024
kovdan01 added a commit that referenced this pull request Dec 4, 2024
kovdan01 added a commit that referenced this pull request Dec 8, 2024
kovdan01 added a commit that referenced this pull request Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants