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
75 lines
2.7 KiB
ArmAsm
75 lines
2.7 KiB
ArmAsm
# REQUIRES: x86
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux \
|
|
# RUN: %p/Inputs/abs.s -o %tabs.o
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux \
|
|
# RUN: %p/Inputs/shared.s -o %tshared.o
|
|
# RUN: rm -f %tar.a
|
|
# RUN: llvm-ar rcs %tar.a %tabs.o %tshared.o
|
|
|
|
# Symbols from the archive are not in if not needed
|
|
# RUN: ld.lld -o %t1 %t.o %tar.a
|
|
# RUN: llvm-readobj --symbols %t1 | FileCheck --check-prefix=NO-UNDEFINED %s
|
|
# NO-UNDEFINED: Symbols [
|
|
# NO-UNDEFINED-NOT: Name: abs
|
|
# NO-UNDEFINED-NOT: Name: big
|
|
# NO-UNDEFINED-NOT: Name: bar
|
|
# NO-UNDEFINED-NOT: Name: zed
|
|
# NO-UNDEFINED: ]
|
|
|
|
# Symbols from the archive are in if needed, but only from the
|
|
# containing object file
|
|
# RUN: ld.lld -o %t2 %t.o %tar.a -u bar
|
|
# RUN: llvm-readobj --symbols %t2 | FileCheck --check-prefix=ONE-UNDEFINED %s
|
|
# ONE-UNDEFINED: Symbols [
|
|
# ONE-UNDEFINED-NOT: Name: abs
|
|
# ONE-UNDEFINED-NOT: Name: big
|
|
# ONE-UNDEFINED: Name: bar
|
|
# ONE-UNDEFINED: Name: zed
|
|
# ONE-UNDEFINED: ]
|
|
|
|
# Use the option couple of times, both short and long forms
|
|
# RUN: ld.lld -o %t3 %t.o %tar.a -u bar --undefined=abs
|
|
# RUN: llvm-readobj --symbols %t3 | FileCheck --check-prefix=TWO-UNDEFINED %s
|
|
# RUN: ld.lld -o %t3 %t.o %tar.a -u bar --undefined abs
|
|
# RUN: llvm-readobj --symbols %t3 | FileCheck --check-prefix=TWO-UNDEFINED %s
|
|
# TWO-UNDEFINED: Symbols [
|
|
# TWO-UNDEFINED: Name: abs
|
|
# TWO-UNDEFINED: Name: big
|
|
# TWO-UNDEFINED: Name: bar
|
|
# TWO-UNDEFINED: Name: zed
|
|
# TWO-UNDEFINED: ]
|
|
# Now the same logic but linker script is used to set undefines
|
|
# RUN: echo "EXTERN( bar \"abs\" )" > %t.script
|
|
# RUN: ld.lld -o %t3 %t.o %tar.a %t.script
|
|
# RUN: llvm-readobj --symbols %t3 | FileCheck --check-prefix=TWO-UNDEFINED %s
|
|
|
|
# Added undefined symbol may be left undefined without error, but
|
|
# shouldn't show up in the dynamic table.
|
|
# RUN: ld.lld -shared -o %t4 %t.o %tar.a -u unknown
|
|
# RUN: llvm-readobj --dyn-symbols %t4 | \
|
|
# RUN: FileCheck --check-prefix=UNK-UNDEFINED-SO %s
|
|
# UNK-UNDEFINED-SO: DynamicSymbols [
|
|
# UNK-UNDEFINED-SO-NOT: Name: unknown
|
|
# UNK-UNDEFINED-SO: ]
|
|
|
|
# Added undefined symbols should appear in the dynamic table if necessary.
|
|
# RUN: ld.lld -shared -soname=t -o %t.so %t.o -u export
|
|
# RUN: llvm-readobj --dyn-symbols %t.so | \
|
|
# RUN: FileCheck --check-prefix=EXPORT-SO %s
|
|
# EXPORT-SO: DynamicSymbols [
|
|
# EXPORT-SO: Name: export
|
|
# EXPORT-SO: ]
|
|
|
|
## Test that we handle -u before input files: if we handle -u after
|
|
## %t.so, foo would be undefined in the output.
|
|
# RUN: rm -f %t.a && llvm-ar rc %t.a %t.o
|
|
# RUN: ld.lld -u export %t.a %t.so -o %t5
|
|
# RUN: llvm-readobj --dyn-symbols %t5 | FileCheck --check-prefix=EXPORT-SO %s
|
|
|
|
.globl _start
|
|
_start:
|
|
|
|
.globl export
|
|
export:
|