Files
TheRock/compiler/amd-llvm/lld/test/ELF/mips-64-got-overflow.s
T
derek.holloway 7502bf64a4
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
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

51 lines
1.7 KiB
ArmAsm

# REQUIRES: mips
# Check the primary GOT cannot be made to overflow
# RUN: llvm-mc -filetype=obj -triple=mips64-unknown-linux \
# RUN: %p/Inputs/mips-64-got-load.s -o %t1.so.o
# RUN: llvm-mc -filetype=obj -triple=mips64-unknown-linux %s -o %t2.so.o
# RUN: ld.lld -shared -mips-got-size 32 %t1.so.o %t2.so.o -o %t-sgot.so
# RUN: ld.lld -shared -mips-got-size 24 %t1.so.o %t2.so.o -o %t-mgot.so
# RUN: llvm-readelf -s -A %t-sgot.so | FileCheck -check-prefixes=SYM,SGOT %s
# RUN: llvm-readelf -s -A %t-mgot.so | FileCheck -check-prefixes=SYM,MGOT %s
# SYM: Symbol table '.symtab'
# SYM: {{.*}}: [[LOC1:[0-9a-f]+]] {{.*}} local1
# SYM: {{.*}}: [[LOC2:[0-9a-f]+]] {{.*}} local2
# SGOT: Primary GOT:
# SGOT-NEXT: Canonical gp value:
# SGOT-EMPTY:
# SGOT-NEXT: Reserved entries:
# SGOT-NEXT: Address Access Initial Purpose
# SGOT-NEXT: {{.*}} -32752(gp) 0000000000000000 Lazy resolver
# SGOT-NEXT: {{.*}} -32744(gp) 8000000000000000 Module pointer (GNU extension)
# SGOT-EMPTY:
# SGOT-NEXT: Local entries:
# SGOT-NEXT: Address Access Initial
# SGOT-NEXT: {{.*}} -32736(gp) [[LOC1]]
# SGOT-NEXT: {{.*}} -32728(gp) [[LOC2]]
# MGOT: Primary GOT:
# MGOT-NEXT: Canonical gp value:
# MGOT-EMPTY:
# MGOT-NEXT: Reserved entries:
# MGOT-NEXT: Address Access Initial Purpose
# MGOT-NEXT: {{.*}} -32752(gp) 0000000000000000 Lazy resolver
# MGOT-NEXT: {{.*}} -32744(gp) 8000000000000000 Module pointer (GNU extension)
# MGOT-EMPTY:
# MGOT-NEXT: Local entries:
# MGOT-NEXT: Address Access Initial
# MGOT-NEXT: {{.*}} -32736(gp) [[LOC1]]
# MGOT-EMPTY:
# MGOT-NEXT: Number of TLS and multi-GOT entries 1
.text
.global foo2
foo2:
ld $2, %got_disp(local2)($gp)
.bss
local2:
.word 0