Files
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

109 lines
2.8 KiB
Plaintext

## Test the --exclude-pagezero option to skip __PAGEZERO segment in Mach-O files.
# RUN: yaml2obj %s --docnum=1 -o %t-pagezero.o
# RUN: llvm-size %t-pagezero.o | \
# RUN: FileCheck %s --check-prefix=NORMAL --match-full-lines
# RUN: llvm-size --exclude-pagezero %t-pagezero.o | \
# RUN: FileCheck %s --check-prefix=SKIP --match-full-lines
# RUN: yaml2obj %s --docnum=2 -o %t-pagezero32.o
# RUN: llvm-size %t-pagezero32.o | \
# RUN: FileCheck %s --check-prefix=NORMAL --match-full-lines
# RUN: llvm-size --exclude-pagezero %t-pagezero32.o | \
# RUN: FileCheck %s --check-prefix=SKIP --match-full-lines
# NORMAL:__TEXT __DATA __OBJC others dec hex
# NORMAL-NEXT:20 100 0 4096 4216 1078
# SKIP:__TEXT __DATA __OBJC others dec hex
# SKIP-NEXT:20 100 0 0 120 78
--- !mach-o
FileHeader:
magic: 0xFEEDFACF
cputype: 0x100000C
cpusubtype: 0x0
filetype: 0x2
ncmds: 3
sizeofcmds: 216
flags: 0x2000
reserved: 0x0
LoadCommands:
- cmd: LC_SEGMENT_64
cmdsize: 72
segname: __PAGEZERO
vmaddr: 0x0
vmsize: 4096
fileoff: 0
filesize: 0
maxprot: 0
initprot: 0
nsects: 0
flags: 0
- cmd: LC_SEGMENT_64
cmdsize: 72
segname: __TEXT
vmaddr: 0x100000000
vmsize: 20
fileoff: 248
filesize: 20
maxprot: 7
initprot: 5
nsects: 0
flags: 0
- cmd: LC_SEGMENT_64
cmdsize: 72
segname: __DATA
vmaddr: 0x100001000
vmsize: 100
fileoff: 268
filesize: 100
maxprot: 7
initprot: 3
nsects: 0
flags: 0
--- !mach-o
FileHeader:
magic: 0xFEEDFACE
cputype: 0x7
cpusubtype: 0x3
filetype: 0x2
ncmds: 3
sizeofcmds: 168
flags: 0x2000
LoadCommands:
- cmd: LC_SEGMENT
cmdsize: 56
segname: __PAGEZERO
vmaddr: 0x0
vmsize: 4096
fileoff: 0
filesize: 0
maxprot: 0
initprot: 0
nsects: 0
flags: 0
- cmd: LC_SEGMENT
cmdsize: 56
segname: __TEXT
vmaddr: 0x1000
vmsize: 20
fileoff: 196
filesize: 20
maxprot: 7
initprot: 5
nsects: 0
flags: 0
- cmd: LC_SEGMENT
cmdsize: 56
segname: __DATA
vmaddr: 0x2000
vmsize: 100
fileoff: 216
filesize: 100
maxprot: 7
initprot: 3
nsects: 0
flags: 0