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
78 lines
2.7 KiB
ArmAsm
78 lines
2.7 KiB
ArmAsm
# REQUIRES: x86
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t.o
|
|
|
|
## Make sure the option parser doesn't think --x and -w are flags.
|
|
# RUN: %lld -dylib -o %t %t.o \
|
|
# RUN: -segprot FOO rwx xwr \
|
|
# RUN: -segprot BAR --x --x \
|
|
# RUN: -segprot BAZ -w -w
|
|
# RUN: llvm-readobj --macho-segment %t | FileCheck %s
|
|
|
|
# CHECK: Name: FOO
|
|
# CHECK-NEXT: Size:
|
|
# CHECK-NEXT: vmaddr:
|
|
# CHECK-NEXT: vmsize:
|
|
# CHECK-NEXT: fileoff:
|
|
# CHECK-NEXT: filesize:
|
|
# CHECK-NEXT: maxprot: rwx
|
|
# CHECK-NEXT: initprot: rwx
|
|
|
|
# CHECK: Name: BAR
|
|
# CHECK-NEXT: Size:
|
|
# CHECK-NEXT: vmaddr:
|
|
# CHECK-NEXT: vmsize:
|
|
# CHECK-NEXT: fileoff:
|
|
# CHECK-NEXT: filesize:
|
|
# CHECK-NEXT: maxprot: --x
|
|
# CHECK-NEXT: initprot: --x
|
|
|
|
# CHECK: Name: BAZ
|
|
# CHECK-NEXT: Size:
|
|
# CHECK-NEXT: vmaddr:
|
|
# CHECK-NEXT: vmsize:
|
|
# CHECK-NEXT: fileoff:
|
|
# CHECK-NEXT: filesize:
|
|
# CHECK-NEXT: maxprot: -w-
|
|
# CHECK-NEXT: initprot: -w-
|
|
|
|
# RUN: %lld -dylib -o %t.different %t.o -segprot FOO rw r
|
|
# RUN: llvm-readobj --macho-segment %t.different \
|
|
# RUN: | FileCheck %s --check-prefix=DIFFERENT
|
|
|
|
# RUN: %no-arg-lld -arch x86_64 -platform_version "mac catalyst" 14.0.0 17.5 \
|
|
# RUN: -dylib -o /dev/null %t.o -segprot FOO rw r
|
|
# RUN: llvm-readobj --macho-segment %t.different \
|
|
# RUN: | FileCheck %s --check-prefix=DIFFERENT
|
|
|
|
# DIFFERENT: Name: FOO
|
|
# DIFFERENT-NEXT: Size:
|
|
# DIFFERENT-NEXT: vmaddr:
|
|
# DIFFERENT-NEXT: vmsize:
|
|
# DIFFERENT-NEXT: fileoff:
|
|
# DIFFERENT-NEXT: filesize:
|
|
# DIFFERENT-NEXT: maxprot: rw-
|
|
# DIFFERENT-NEXT: initprot: r--
|
|
|
|
# RUN: not %no-arg-lld -arch x86_64 -platform_version ios-simulator 14.0 15.0 \
|
|
# RUN: -dylib -o /dev/null %t.o -segprot FOO rwx rw 2>&1 \
|
|
# RUN: | FileCheck %s --check-prefix=MISMATCH
|
|
# RUN: not %lld -dylib -o /dev/null %t.o -segprot FOO r rw 2>&1 \
|
|
# RUN: | FileCheck %s --check-prefix=INITTOOPERMISSIVE
|
|
# RUN: not %lld -dylib -o /dev/null %t.o -segprot __LINKEDIT rwx rwx 2>&1 \
|
|
# RUN: | FileCheck %s --check-prefix=NO-LINKEDIT
|
|
# RUN: not %lld -dylib -o /dev/null %t.o -segprot FOO uhh wat 2>&1 \
|
|
# RUN: | FileCheck %s --check-prefix=MISPARSE
|
|
# RUN: not %lld -dylib -o /dev/null %t.o -segprot FOO rwx 2>&1 \
|
|
# RUN: | FileCheck %s --check-prefix=MISSING
|
|
|
|
# MISMATCH: error: invalid argument '-segprot FOO rwx rw': max and init must be the same for non-macOS non-i386 archs
|
|
# INITTOOPERMISSIVE: error: invalid argument '-segprot FOO r rw': init must not be more permissive than max
|
|
# NO-LINKEDIT: error: -segprot cannot be used to change __LINKEDIT's protections
|
|
# MISPARSE: error: unknown -segprot letter 'u' in uhh
|
|
# MISPARSE: error: unknown -segprot letter 'a' in wat
|
|
# MISSING: error: -segprot: missing argument
|
|
|
|
.section FOO,foo
|
|
.section BAR,bar
|
|
.section BAZ,baz
|