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
87 lines
3.6 KiB
ArmAsm
87 lines
3.6 KiB
ArmAsm
# REQUIRES: x86
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
|
|
|
|
# Simple symbol assignment. Should raise conflict in case we
|
|
# have duplicates in any input section, but currently simply
|
|
# replaces the value.
|
|
# RUN: echo "SECTIONS {.text : {*(.text.*)} text_end = .;}" > %t.script
|
|
# RUN: ld.lld -o %t1 --script %t.script %t
|
|
# RUN: llvm-objdump -t %t1 | FileCheck --check-prefix=SIMPLE %s
|
|
# SIMPLE: .text 0000000000000000 text_end
|
|
|
|
# The symbol is not referenced. Don't provide it.
|
|
# RUN: echo "SECTIONS { PROVIDE(newsym = 1);}" > %t.script
|
|
# RUN: ld.lld -o %t1 --script %t.script %t
|
|
# RUN: llvm-objdump -t %t1 | FileCheck --check-prefix=DONTPROVIDE %s
|
|
# DONTPROVIDE-NOT: newsym
|
|
|
|
# The symbol is not referenced. Don't provide it.
|
|
# RUN: echo "SECTIONS { PROVIDE_HIDDEN(newsym = 1);}" > %t.script
|
|
# RUN: ld.lld -o %t1 --script %t.script %t
|
|
# RUN: llvm-objdump -t %t1 | FileCheck --check-prefix=DONTPROVIDE %s
|
|
|
|
# Provide existing symbol. The value should be 0, even though we
|
|
# have value of 1 in PROVIDE()
|
|
# RUN: echo "SECTIONS { PROVIDE(somesym =1);}" > %t.script
|
|
# RUN: ld.lld -o %t1 --script %t.script %t
|
|
# RUN: llvm-objdump -t %t1 | FileCheck --check-prefix=PROVIDE2 %s
|
|
# PROVIDE2: 0000000000000000 g *ABS* 0000000000000000 somesym
|
|
|
|
# Provide existing symbol. The value should be 0, even though we
|
|
# have value of 1 in PROVIDE_HIDDEN(). Visibility should not change
|
|
# RUN: echo "SECTIONS { PROVIDE_HIDDEN(somesym =1);}" > %t.script
|
|
# RUN: ld.lld -o %t1 --script %t.script %t
|
|
# RUN: llvm-objdump -t %t1 | FileCheck --check-prefix=HIDDEN2 %s
|
|
# HIDDEN2: 0000000000000000 g *ABS* 0000000000000000 somesym
|
|
|
|
# Hidden symbol assignment.
|
|
# RUN: echo "SECTIONS { HIDDEN(newsym =1);}" > %t.script
|
|
# RUN: ld.lld -o %t1 --script %t.script %t
|
|
# RUN: llvm-objdump -t %t1 | FileCheck --check-prefix=HIDDEN3 %s
|
|
# HIDDEN3: 0000000000000001 l *ABS* 0000000000000000 .hidden newsym
|
|
|
|
# The symbol is not referenced. Don't provide it.
|
|
# RUN: echo "PROVIDE(newsym = 1);" > %t.script
|
|
# RUN: ld.lld -o %t1 --script %t.script %t
|
|
# RUN: llvm-objdump -t %t1 | FileCheck --check-prefix=DONTPROVIDE %s
|
|
|
|
# The symbol is not referenced. Don't provide it.
|
|
# RUN: echo "PROVIDE_HIDDEN(newsym = 1);" > %t.script
|
|
# RUN: ld.lld -o %t1 --script %t.script %t
|
|
# RUN: llvm-objdump -t %t1 | FileCheck --check-prefix=DONTPROVIDE %s
|
|
|
|
# Provide existing symbol. The value should be 0, even though we
|
|
# have value of 1 in PROVIDE()
|
|
# RUN: echo "PROVIDE(somesym = 1);" > %t.script
|
|
# RUN: ld.lld -o %t1 --script %t.script %t
|
|
# RUN: llvm-objdump -t %t1 | FileCheck --check-prefix=PROVIDE5 %s
|
|
# PROVIDE5: 0000000000000000 g *ABS* 0000000000000000 somesym
|
|
|
|
# Provide existing symbol. The value should be 0, even though we
|
|
# have value of 1 in PROVIDE_HIDDEN(). Visibility should not change
|
|
# RUN: echo "PROVIDE_HIDDEN(somesym = 1);" > %t.script
|
|
# RUN: ld.lld -o %t1 --script %t.script %t
|
|
# RUN: llvm-objdump -t %t1 | FileCheck --check-prefix=HIDDEN5 %s
|
|
# HIDDEN5: 0000000000000000 g *ABS* 0000000000000000 somesym
|
|
|
|
# Simple symbol assignment. All three symbols should have the
|
|
# same value.
|
|
# RUN: echo "foo = 0x100; SECTIONS { bar = foo; } baz = bar;" > %t.script
|
|
# RUN: ld.lld -o %t1 --script %t.script %t
|
|
# RUN: llvm-objdump -t %t1 | FileCheck --check-prefix=SIMPLE2 %s
|
|
# SIMPLE2: 0000000000000100 g *ABS* 0000000000000000 foo
|
|
# SIMPLE2: 0000000000000100 g *ABS* 0000000000000000 bar
|
|
# SIMPLE2: 0000000000000100 g *ABS* 0000000000000000 baz
|
|
|
|
# RUN: echo 'PROVIDE(somesym + 1);' > %t.script
|
|
# RUN: not ld.lld -T %t.script %t -o /dev/null 2>&1 | FileCheck %s --check-prefix=PROVIDE-ERR
|
|
|
|
# PROVIDE-ERR: {{.*}}:1: = expected, but got +
|
|
|
|
.global _start
|
|
_start:
|
|
nop
|
|
|
|
.global somesym
|
|
somesym = 0
|