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
175 lines
5.4 KiB
Plaintext
175 lines
5.4 KiB
Plaintext
# REQUIRES: x86
|
|
|
|
# RUN: yaml2obj --docnum=1 %s -o %t1.o
|
|
# RUN: not ld.lld %t1.o -o /dev/null 2>&1 | FileCheck --check-prefix=ERR %s
|
|
# ERR: error: {{.*}}: R_X86_64_GOTTPOFF must be used in MOVQ or ADDQ instructions only
|
|
# ERR: error: {{.*}}: R_X86_64_GOTTPOFF must be used in MOVQ or ADDQ instructions only
|
|
|
|
## YAML below contains 2 relocations of type R_X86_64_GOTTPOFF, and a .text
|
|
## with fake content filled by 0xFF. That means instructions for relaxation are
|
|
## "broken", so they does not match any known valid relaxations. We also generate
|
|
## .tls section because we need it for correct processing of STT_TLS symbol.
|
|
--- !ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2LSB
|
|
OSABI: ELFOSABI_FREEBSD
|
|
Type: ET_REL
|
|
Machine: EM_X86_64
|
|
Sections:
|
|
- Type: SHT_PROGBITS
|
|
Name: .text
|
|
Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
|
|
AddressAlign: 0x04
|
|
Content: "FFFFFFFFFFFFFFFF"
|
|
- Type: SHT_PROGBITS
|
|
Name: .tls
|
|
Flags: [ SHF_ALLOC, SHF_TLS ]
|
|
- Type: SHT_REL
|
|
Name: .rel.text
|
|
Link: .symtab
|
|
Info: .text
|
|
AddressAlign: 0x04
|
|
Relocations:
|
|
- Offset: 4
|
|
Symbol: foo
|
|
Type: R_X86_64_GOTTPOFF
|
|
- Offset: 4
|
|
Symbol: foo
|
|
Type: R_X86_64_GOTTPOFF
|
|
Symbols:
|
|
- Name: foo
|
|
Type: STT_TLS
|
|
Section: .text
|
|
Value: 0x12345
|
|
Size: 4
|
|
Binding: STB_GLOBAL
|
|
|
|
|
|
# RUN: yaml2obj --docnum=2 %s -o %t2.o
|
|
# RUN: not ld.lld %t2.o -o /dev/null 2>&1 | FileCheck --check-prefix=ERR2 %s
|
|
# ERR2: error: {{.*}}: invalid prefix with R_X86_64_CODE_4_GOTTPOFF!
|
|
# ERR2: error: {{.*}}: invalid prefix with R_X86_64_CODE_6_GOTTPOFF!
|
|
|
|
## YAML below contains 2 relocations of
|
|
## R_X86_64_CODE_4_GOTTPOFF/R_X86_64_CODE_6_GOTTPOFF type, and a .text with
|
|
## fake content filled by 0xFF. It's expected to get "invalid prefix" error
|
|
## message as above.
|
|
--- !ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2LSB
|
|
OSABI: ELFOSABI_FREEBSD
|
|
Type: ET_REL
|
|
Machine: EM_X86_64
|
|
Sections:
|
|
- Type: SHT_PROGBITS
|
|
Name: .text
|
|
Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
|
|
AddressAlign: 0x04
|
|
Content: "FFFFFFFFFFFFFFFFFFFF"
|
|
- Type: SHT_PROGBITS
|
|
Name: .tls
|
|
Flags: [ SHF_ALLOC, SHF_TLS ]
|
|
- Type: SHT_REL
|
|
Name: .rel.text
|
|
Link: .symtab
|
|
Info: .text
|
|
AddressAlign: 0x04
|
|
Relocations:
|
|
- Offset: 4
|
|
Symbol: foo
|
|
Type: R_X86_64_CODE_4_GOTTPOFF
|
|
- Offset: 6
|
|
Symbol: foo
|
|
Type: R_X86_64_CODE_6_GOTTPOFF
|
|
Symbols:
|
|
- Name: foo
|
|
Type: STT_TLS
|
|
Section: .text
|
|
Value: 0x12345
|
|
Size: 4
|
|
Binding: STB_GLOBAL
|
|
|
|
|
|
# RUN: yaml2obj --docnum=3 %s -o %t3.o
|
|
# RUN: not ld.lld %t3.o -o /dev/null 2>&1 | FileCheck --check-prefix=ERR3 %s
|
|
# ERR3: error: {{.*}}: R_X86_64_CODE_4_GOTTPOFF must be used in MOVQ or ADDQ instructions only
|
|
|
|
## YAML below contains R_X86_64_CODE_4_GOTTPOFF relocation type, and a .text
|
|
## with fake content filled by 0xd5, 0xFF, ... and 0xFF. It's expected to get
|
|
## the error message as above.
|
|
--- !ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2LSB
|
|
OSABI: ELFOSABI_FREEBSD
|
|
Type: ET_REL
|
|
Machine: EM_X86_64
|
|
Sections:
|
|
- Type: SHT_PROGBITS
|
|
Name: .text
|
|
Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
|
|
AddressAlign: 0x04
|
|
Content: "d5FFFFFFFFFFFFFFFFFF"
|
|
- Type: SHT_PROGBITS
|
|
Name: .tls
|
|
Flags: [ SHF_ALLOC, SHF_TLS ]
|
|
- Type: SHT_REL
|
|
Name: .rel.text
|
|
Link: .symtab
|
|
Info: .text
|
|
AddressAlign: 0x04
|
|
Relocations:
|
|
- Offset: 4
|
|
Symbol: foo
|
|
Type: R_X86_64_CODE_4_GOTTPOFF
|
|
Symbols:
|
|
- Name: foo
|
|
Type: STT_TLS
|
|
Section: .text
|
|
Value: 0x12345
|
|
Size: 4
|
|
Binding: STB_GLOBAL
|
|
|
|
|
|
# RUN: yaml2obj --docnum=4 %s -o %t4.o
|
|
# RUN: not ld.lld %t4.o -o /dev/null 2>&1 | FileCheck --check-prefix=ERR4 %s
|
|
# ERR4: error: {{.*}}: R_X86_64_CODE_6_GOTTPOFF must be used in ADDQ instructions with NDD/NF/NDD+NF only
|
|
|
|
## YAML below contains R_X86_64_CODE_6_GOTTPOFF relocation type, and a .text
|
|
## with fake content filled by 0x62, 0xFF, ... and 0xFF. It's expected to get
|
|
## the error message as above.
|
|
--- !ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2LSB
|
|
OSABI: ELFOSABI_FREEBSD
|
|
Type: ET_REL
|
|
Machine: EM_X86_64
|
|
Sections:
|
|
- Type: SHT_PROGBITS
|
|
Name: .text
|
|
Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
|
|
AddressAlign: 0x04
|
|
Content: "62FFFFFFFFFFFFFFFFFF"
|
|
- Type: SHT_PROGBITS
|
|
Name: .tls
|
|
Flags: [ SHF_ALLOC, SHF_TLS ]
|
|
- Type: SHT_REL
|
|
Name: .rel.text
|
|
Link: .symtab
|
|
Info: .text
|
|
AddressAlign: 0x04
|
|
Relocations:
|
|
- Offset: 6
|
|
Symbol: foo
|
|
Type: R_X86_64_CODE_6_GOTTPOFF
|
|
Symbols:
|
|
- Name: foo
|
|
Type: STT_TLS
|
|
Section: .text
|
|
Value: 0x12345
|
|
Size: 4
|
|
Binding: STB_GLOBAL
|