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
54 lines
1.4 KiB
Plaintext
54 lines
1.4 KiB
Plaintext
## Show that the -j/--just-symbol-name/--format=just-symbols prints only the the
|
|
## symbol name.
|
|
|
|
# RUN: yaml2obj %s -o %t.o
|
|
|
|
# RUN: llvm-nm -j %t.o > %t.txt
|
|
# RUN: llvm-nm --just-symbol-name %t.o | diff %t.txt -
|
|
# RUN: llvm-nm --format=just-symbols %t.o | diff %t.txt -
|
|
# RUN: llvm-nm --format=sysv -j %t.o | diff %t.txt -
|
|
# RUN: llvm-nm -j --format=posix %t.o | not diff %t.txt -
|
|
|
|
# RUN: FileCheck %s --input-file=%t.txt --implicit-check-not={{.}} --check-prefix=COMMON
|
|
|
|
# COMMON: {{^}}defined{{$}}
|
|
# COMMON-NEXT: {{^}}undefined{{$}}
|
|
|
|
# RUN: llvm-nm -j %t.o %t.o | FileCheck %s --check-prefix=MULTI1 -DFILE=%t.o
|
|
|
|
# MULTI1-NOT: {{.}}
|
|
# MULTI1: {{^$}}
|
|
# MULTI1-NEXT: [[FILE]]:
|
|
# MULTI1-NEXT: defined
|
|
# MULTI1-NEXT: undefined
|
|
# MULTI1-EMPTY:
|
|
# MULTI1-NEXT: [[FILE]]:
|
|
# MULTI1-NEXT: defined
|
|
# MULTI1-NEXT: undefined
|
|
# MULTI1-NOT: {{.}}
|
|
|
|
# RUN: llvm-nm -j --print-file-name %t.o %t.o | FileCheck %s --check-prefix=MULTI2 -DFILE=%t.o
|
|
|
|
# MULTI2-NOT: {{.}}
|
|
# MULTI2: [[FILE]]: defined
|
|
# MULTI2-NEXT: [[FILE]]: undefined
|
|
# MULTI2-NEXT: [[FILE]]: defined
|
|
# MULTI2-NEXT: [[FILE]]: undefined
|
|
# MULTI2-NOT: {{.}}
|
|
|
|
--- !ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2LSB
|
|
Type: ET_REL
|
|
Sections:
|
|
- Name: .text
|
|
Type: SHT_PROGBITS
|
|
Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
|
|
Symbols:
|
|
- Name: defined
|
|
Section: .text
|
|
Binding: STB_GLOBAL
|
|
- Name: undefined
|
|
Binding: STB_GLOBAL
|