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
62 lines
2.2 KiB
Plaintext
62 lines
2.2 KiB
Plaintext
// Check that marker symbols ($d, $x) denoting data embedded in code are ignored
|
|
// if they fall outside their respective sections.
|
|
|
|
// RUN: yaml2obj %S/Inputs/spurious-marker-symbol.yaml -o %t.exe
|
|
// RUN: llvm-bolt %t.exe -o %t.bolt 2>&1 | FileCheck %s
|
|
// CHECK: 1 out of 1 functions were overwritten
|
|
// RUN: llvm-objdump -j .text -d %t.bolt | FileCheck %s -check-prefix=CHECK-DISASM
|
|
// CHECK-DISASM: func
|
|
// CHECK-DISASM: 2a0000: d2800540 mov
|
|
// CHECK-DISASM: 2a0004: d65f03c0 ret
|
|
|
|
// The YAML encodes the following assembly and debug information:
|
|
|
|
.text
|
|
.globl func
|
|
.type func, %function
|
|
func:
|
|
mov x0, #42
|
|
// $d.42: (symbol in .ignored, with an address in .text)
|
|
ret
|
|
|
|
// .eh_frame contains minimal DWARF with a CFA operation on the `ret`. BOLT
|
|
// should ignore the spurious `$d.42`. If it doesn't, then it will stop
|
|
// disassembling after the `mov` and will fail to process the second
|
|
// DW_CFA_def_cfa_offset.
|
|
//
|
|
// CIE
|
|
// length: 00000010
|
|
// CIE_id: 00000000
|
|
// version: 01
|
|
// augmentation:
|
|
// "zR" 7a 52 00
|
|
// - read augmentation data
|
|
// - read FDE pointer encoding
|
|
// code_alignment_factor: 04
|
|
// data_alignment_factor: 78 (-8)
|
|
// return_address_register: 1e (r30 / lr)
|
|
//
|
|
// augmentation data:
|
|
// length: 01
|
|
// FDE pointers are absptr+sdata4 0b
|
|
//
|
|
// initial_instructions:
|
|
// DW_CFA_def_cfa (31, 0): 0c 1f 00
|
|
//
|
|
// Encoding: 10000000'00000000'01'7a5200'04'78'1e'10'0b'0c1f00
|
|
//
|
|
// FDE
|
|
// length: 00000014
|
|
// CIE_pointer: 00000018 (backwards offset from here to CIE)
|
|
// initial_location: 002a0000 (`func` as absptr+sdata4)
|
|
// address_range: 00000008
|
|
// augmentation data:
|
|
// length: 00
|
|
// instructions:
|
|
// DW_CFA_def_cfa_offset (1) 0e 01
|
|
// DW_CFA_advance_loc (1) 41 (`ret` at 0x2a0004)
|
|
// DW_CFA_def_cfa_offset (1) 0e 01 Fails unless $d.42 is ignored.
|
|
// DW_CFA_nop 00 00
|
|
//
|
|
// Encoding: 14000000'18000000'00002a00'08000000'000e0141'0e010000
|