[llvm] Revert "[Object] Handle SHT_CREL relocation sections when resolving relocation data" (PR #142068)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Thu May 29 19:56:55 PDT 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-riscv-rva20-2stage` running on `rise-clang-riscv-rva20-2stage` while building `llvm` at step 4 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/87/builds/1592

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 4 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/rise-riscv-build.sh --jobs=32' (failure)
...
PASS: LLVM :: tools/llvm-dwarfdump/X86/debug_addr_segment_selector.s (75527 of 84638)
PASS: LLVM :: tools/llvm-dwarfdump/X86/debug_addr_dwarf4.s (75528 of 84638)
PASS: LLVM :: tools/llvm-dwarfdump/X86/debug_addr_too_small_for_extended_length_field.s (75529 of 84638)
PASS: LLVM :: tools/llvm-dwarfdump/X86/debug_addr_too_small_for_length_field.s (75530 of 84638)
PASS: LLVM :: tools/llvm-dwarfdump/X86/debug_addr_small_length_field.s (75531 of 84638)
PASS: LLVM :: tools/llvm-dwarfdump/X86/debug_addr_too_small_for_section.s (75532 of 84638)
PASS: LLVM :: tools/llvm-dwarfdump/X86/debug_addr_unsupported_version.s (75533 of 84638)
PASS: LLVM :: tools/llvm-dwarfdump/X86/debug_info_min_dwarf64.s (75534 of 84638)
PASS: LLVM :: tools/llvm-dwarfdump/X86/debug_loc-OP_addr.s (75535 of 84638)
PASS: LLVM :: tools/llvm-dwarfdump/X86/debug_frame_GNU_args_size.s (75536 of 84638)
FAIL: LLVM :: tools/llvm-dwarfdump/X86/debug_info_crel.yaml (75537 of 84638)
******************** TEST 'LLVM :: tools/llvm-dwarfdump/X86/debug_info_crel.yaml' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/home/buildbot-worker/bbroot/clang-riscv-rva20-2stage/stage2/bin/yaml2obj /home/buildbot-worker/bbroot/clang-riscv-rva20-2stage/llvm/llvm/test/tools/llvm-dwarfdump/X86/debug_info_crel.yaml | /home/buildbot-worker/bbroot/clang-riscv-rva20-2stage/stage2/bin/llvm-dwarfdump - | /home/buildbot-worker/bbroot/clang-riscv-rva20-2stage/stage2/bin/FileCheck /home/buildbot-worker/bbroot/clang-riscv-rva20-2stage/llvm/llvm/test/tools/llvm-dwarfdump/X86/debug_info_crel.yaml # RUN: at line 3
+ /home/buildbot-worker/bbroot/clang-riscv-rva20-2stage/stage2/bin/yaml2obj /home/buildbot-worker/bbroot/clang-riscv-rva20-2stage/llvm/llvm/test/tools/llvm-dwarfdump/X86/debug_info_crel.yaml
+ /home/buildbot-worker/bbroot/clang-riscv-rva20-2stage/stage2/bin/llvm-dwarfdump -
+ /home/buildbot-worker/bbroot/clang-riscv-rva20-2stage/stage2/bin/FileCheck /home/buildbot-worker/bbroot/clang-riscv-rva20-2stage/llvm/llvm/test/tools/llvm-dwarfdump/X86/debug_info_crel.yaml
error: invalid reference to or invalid content in .debug_str_offsets[.dwo]: insufficient space for 32 bit header prefix
/home/buildbot-worker/bbroot/clang-riscv-rva20-2stage/llvm/llvm/test/tools/llvm-dwarfdump/X86/debug_info_crel.yaml:5:10: error: CHECK: expected string not found in input
# CHECK: DW_AT_producer ("clang version
         ^
<stdin>:1:1: note: scanning from here
-: file format elf64-x86-64
^
<stdin>:7:2: note: possible intended match here
 DW_AT_producer ()
 ^

Input file: <stdin>
Check file: /home/buildbot-worker/bbroot/clang-riscv-rva20-2stage/llvm/llvm/test/tools/llvm-dwarfdump/X86/debug_info_crel.yaml

-dump-input=help explains the following input dump.

Input was:
<<<<<<
           1: -: file format elf64-x86-64 
check:5'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
           2:  
check:5'0     ~
           3: .debug_info contents: 
check:5'0     ~~~~~~~~~~~~~~~~~~~~~~
           4: 0x00000000: Compile Unit: length = 0x00000034, format = DWARF32, version = 0x0005, unit_type = DW_UT_compile, abbr_offset = 0x0000, addr_size = 0x08 (next unit at 0x00000038) 
check:5'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           5:  
check:5'0     ~
           6: 0x0000000c: DW_TAG_compile_unit 
Step 11 (llvm-project check-all) failure: llvm-project check-all (failure)
...
PASS: LLVM :: tools/llvm-dwarfdump/X86/debug_addr_segment_selector.s (75527 of 84638)
PASS: LLVM :: tools/llvm-dwarfdump/X86/debug_addr_dwarf4.s (75528 of 84638)
PASS: LLVM :: tools/llvm-dwarfdump/X86/debug_addr_too_small_for_extended_length_field.s (75529 of 84638)
PASS: LLVM :: tools/llvm-dwarfdump/X86/debug_addr_too_small_for_length_field.s (75530 of 84638)
PASS: LLVM :: tools/llvm-dwarfdump/X86/debug_addr_small_length_field.s (75531 of 84638)
PASS: LLVM :: tools/llvm-dwarfdump/X86/debug_addr_too_small_for_section.s (75532 of 84638)
PASS: LLVM :: tools/llvm-dwarfdump/X86/debug_addr_unsupported_version.s (75533 of 84638)
PASS: LLVM :: tools/llvm-dwarfdump/X86/debug_info_min_dwarf64.s (75534 of 84638)
PASS: LLVM :: tools/llvm-dwarfdump/X86/debug_loc-OP_addr.s (75535 of 84638)
PASS: LLVM :: tools/llvm-dwarfdump/X86/debug_frame_GNU_args_size.s (75536 of 84638)
FAIL: LLVM :: tools/llvm-dwarfdump/X86/debug_info_crel.yaml (75537 of 84638)
******************** TEST 'LLVM :: tools/llvm-dwarfdump/X86/debug_info_crel.yaml' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/home/buildbot-worker/bbroot/clang-riscv-rva20-2stage/stage2/bin/yaml2obj /home/buildbot-worker/bbroot/clang-riscv-rva20-2stage/llvm/llvm/test/tools/llvm-dwarfdump/X86/debug_info_crel.yaml | /home/buildbot-worker/bbroot/clang-riscv-rva20-2stage/stage2/bin/llvm-dwarfdump - | /home/buildbot-worker/bbroot/clang-riscv-rva20-2stage/stage2/bin/FileCheck /home/buildbot-worker/bbroot/clang-riscv-rva20-2stage/llvm/llvm/test/tools/llvm-dwarfdump/X86/debug_info_crel.yaml # RUN: at line 3
+ /home/buildbot-worker/bbroot/clang-riscv-rva20-2stage/stage2/bin/yaml2obj /home/buildbot-worker/bbroot/clang-riscv-rva20-2stage/llvm/llvm/test/tools/llvm-dwarfdump/X86/debug_info_crel.yaml
+ /home/buildbot-worker/bbroot/clang-riscv-rva20-2stage/stage2/bin/llvm-dwarfdump -
+ /home/buildbot-worker/bbroot/clang-riscv-rva20-2stage/stage2/bin/FileCheck /home/buildbot-worker/bbroot/clang-riscv-rva20-2stage/llvm/llvm/test/tools/llvm-dwarfdump/X86/debug_info_crel.yaml
error: invalid reference to or invalid content in .debug_str_offsets[.dwo]: insufficient space for 32 bit header prefix
/home/buildbot-worker/bbroot/clang-riscv-rva20-2stage/llvm/llvm/test/tools/llvm-dwarfdump/X86/debug_info_crel.yaml:5:10: error: CHECK: expected string not found in input
# CHECK: DW_AT_producer ("clang version
         ^
<stdin>:1:1: note: scanning from here
-: file format elf64-x86-64
^
<stdin>:7:2: note: possible intended match here
 DW_AT_producer ()
 ^

Input file: <stdin>
Check file: /home/buildbot-worker/bbroot/clang-riscv-rva20-2stage/llvm/llvm/test/tools/llvm-dwarfdump/X86/debug_info_crel.yaml

-dump-input=help explains the following input dump.

Input was:
<<<<<<
           1: -: file format elf64-x86-64 
check:5'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
           2:  
check:5'0     ~
           3: .debug_info contents: 
check:5'0     ~~~~~~~~~~~~~~~~~~~~~~
           4: 0x00000000: Compile Unit: length = 0x00000034, format = DWARF32, version = 0x0005, unit_type = DW_UT_compile, abbr_offset = 0x0000, addr_size = 0x08 (next unit at 0x00000038) 
check:5'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           5:  
check:5'0     ~
           6: 0x0000000c: DW_TAG_compile_unit 

```

</details>

https://github.com/llvm/llvm-project/pull/142068


More information about the llvm-commits mailing list