CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
69 lines
2.3 KiB
ArmAsm
69 lines
2.3 KiB
ArmAsm
// REQUIRES: x86
|
|
// RUN: llvm-mc -filetype=obj -triple=i386-unknown-linux %s -o %t1.o
|
|
// RUN: llvm-mc -filetype=obj -triple=i386-unknown-linux %p/Inputs/shared.s -o %t2.o
|
|
// RUN: ld.lld -shared -soname=t2.so %t2.o -o %t2.so
|
|
|
|
// RUN: echo "SECTIONS { \
|
|
// RUN: .text : { *(.text) } \
|
|
// RUN: .plt : { *(.plt) } \
|
|
// RUN: .got.plt : { *(.got.plt) } \
|
|
// RUN: .dynstr : { *(.dynstr) } \
|
|
// RUN: }" > %t.script
|
|
// RUN: ld.lld %t1.o %t2.so -o %t.exe -z retpolineplt --script %t.script
|
|
// RUN: llvm-objdump --no-print-imm-hex -d -s --no-show-raw-insn %t.exe | FileCheck %s
|
|
|
|
// CHECK: Disassembly of section .plt:
|
|
// CHECK-EMPTY:
|
|
// CHECK-NEXT: <.plt>:
|
|
// CHECK-NEXT: 10: pushl 236
|
|
// CHECK-NEXT: 16: pushl %eax
|
|
// CHECK-NEXT: 17: movl 240, %eax
|
|
// CHECK-NEXT: 1c: calll 0x30 <.plt+0x20>
|
|
// CHECK-NEXT: 21: pause
|
|
// CHECK-NEXT: 23: lfence
|
|
// CHECK-NEXT: 26: jmp 0x21 <.plt+0x11>
|
|
// CHECK-NEXT: 28: int3
|
|
// CHECK-NEXT: 29: int3
|
|
// CHECK-NEXT: 2a: int3
|
|
// CHECK-NEXT: 2b: int3
|
|
// CHECK-NEXT: 2c: int3
|
|
// CHECK-NEXT: 2d: int3
|
|
// CHECK-NEXT: 2e: int3
|
|
// CHECK-NEXT: 2f: int3
|
|
// CHECK-NEXT: 30: movl %ecx, (%esp)
|
|
// CHECK-NEXT: 33: movl 4(%esp), %ecx
|
|
// CHECK-NEXT: 37: movl %eax, 4(%esp)
|
|
// CHECK-NEXT: 3b: movl %ecx, %eax
|
|
// CHECK-NEXT: 3d: popl %ecx
|
|
// CHECK-NEXT: 3e: retl
|
|
// CHECK-NEXT: 3f: int3
|
|
// CHECK-NEXT: 40: pushl %eax
|
|
// CHECK-NEXT: 41: movl 244, %eax
|
|
// CHECK-NEXT: 46: calll 0x30 <.plt+0x20>
|
|
// CHECK-NEXT: 4b: jmp 0x21 <.plt+0x11>
|
|
// CHECK-NEXT: 50: pushl $0
|
|
// CHECK-NEXT: 55: jmp 0x10 <.plt>
|
|
// CHECK-NEXT: 5a: int3
|
|
// CHECK-NEXT: 5b: int3
|
|
// CHECK-NEXT: 5c: int3
|
|
// CHECK-NEXT: 5d: int3
|
|
// CHECK-NEXT: 5e: int3
|
|
// CHECK-NEXT: 5f: int3
|
|
// CHECK-NEXT: 60: pushl %eax
|
|
// CHECK-NEXT: 61: movl 248, %eax
|
|
// CHECK-NEXT: 66: calll 0x30 <.plt+0x20>
|
|
// CHECK-NEXT: 6b: jmp 0x21 <.plt+0x11>
|
|
// CHECK-NEXT: 70: pushl $8
|
|
// CHECK-NEXT: 75: jmp 0x10 <.plt>
|
|
// CHECK-NEXT: 7a: int3
|
|
// CHECK-NEXT: 7b: int3
|
|
// CHECK-NEXT: 7c: int3
|
|
// CHECK-NEXT: 7d: int3
|
|
// CHECK-NEXT: 7e: int3
|
|
// CHECK-NEXT: 7f: int3
|
|
|
|
.global _start
|
|
_start:
|
|
jmp bar@PLT
|
|
jmp zed@PLT
|