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
72 lines
2.0 KiB
ArmAsm
72 lines
2.0 KiB
ArmAsm
// REQUIRES: x86
|
|
// RUN: llvm-mc -filetype=obj -triple=i686-pc-freebsd %S/Inputs/shared2-x86-64.s -o %t1.o
|
|
// RUN: ld.lld %t1.o --shared --soname=t.so -o %t.so
|
|
// RUN: llvm-mc -filetype=obj -triple=i686-pc-freebsd %s -o %t.o
|
|
// RUN: ld.lld -z ifunc-noplt -z notext --hash-style=sysv %t.so %t.o -o %tout
|
|
// RUN: llvm-objdump -d --no-show-raw-insn --print-imm-hex %tout | FileCheck %s --check-prefix=DISASM
|
|
// RUN: llvm-readobj -r --dynamic-table %tout | FileCheck %s
|
|
|
|
// Check that we emitted relocations for the ifunc calls
|
|
// CHECK: Relocations [
|
|
// CHECK-NEXT: Section (4) .rel.dyn {
|
|
// CHECK-NEXT: 0x4011EF R_386_PLT32 foo
|
|
// CHECK-NEXT: 0x4011F4 R_386_PLT32 bar
|
|
// CHECK-NEXT: }
|
|
// CHECK-NEXT: Section (5) .rel.plt {
|
|
// CHECK-NEXT: 0x4032D4 R_386_JUMP_SLOT bar2
|
|
// CHECK-NEXT: 0x4032D8 R_386_JUMP_SLOT zed2
|
|
// CHECK-NEXT: }
|
|
|
|
// Check that ifunc call sites still require relocation
|
|
// DISASM: Disassembly of section .text:
|
|
// DISASM-EMPTY:
|
|
// DISASM-NEXT: 004011ec <foo>:
|
|
// DISASM-NEXT: retl
|
|
// DISASM-EMPTY:
|
|
// DISASM-NEXT: 004011ed <bar>:
|
|
// DISASM-NEXT: retl
|
|
// DISASM-EMPTY:
|
|
// DISASM-NEXT: 004011ee <_start>:
|
|
// DISASM-NEXT: calll 0x4011ef <_start+0x1>
|
|
// DISASM-NEXT: calll 0x4011f4 <_start+0x6>
|
|
// DISASM-NEXT: calll 0x401220 <bar2@plt>
|
|
// DISASM-NEXT: calll 0x401230 <zed2@plt>
|
|
// DISASM-EMPTY:
|
|
// DISASM-NEXT: Disassembly of section .plt:
|
|
// DISASM-EMPTY:
|
|
// DISASM-NEXT: 00401210 <.plt>:
|
|
// DISASM-NEXT: pushl 0x4032cc
|
|
// DISASM-NEXT: jmpl *0x4032d0
|
|
// DISASM-NEXT: nop
|
|
// DISASM-NEXT: nop
|
|
// DISASM-NEXT: nop
|
|
// DISASM-NEXT: nop
|
|
// DISASM-EMPTY:
|
|
// DISASM-NEXT: 00401220 <bar2@plt>:
|
|
// DISASM-NEXT: jmpl *0x4032d4
|
|
// DISASM-NEXT: pushl $0x0
|
|
// DISASM-NEXT: jmp 0x401210 <.plt>
|
|
// DISASM-EMPTY:
|
|
// DISASM-NEXT: 00401230 <zed2@plt>:
|
|
// DISASM-NEXT: jmpl *0x4032d8
|
|
// DISASM-NEXT: pushl $0x8
|
|
// DISASM-NEXT: jmp 0x401210 <.plt>
|
|
|
|
.text
|
|
.type foo STT_GNU_IFUNC
|
|
.globl foo
|
|
foo:
|
|
ret
|
|
|
|
.type bar STT_GNU_IFUNC
|
|
.globl bar
|
|
bar:
|
|
ret
|
|
|
|
.globl _start
|
|
_start:
|
|
call foo@plt
|
|
call bar@plt
|
|
call bar2@plt
|
|
call zed2@plt
|