[lld] Enough LLD changes to bootstrap OpenBSD on sparc64 (PR #207609)

via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 5 13:15:13 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 4057 tests passed
* 116 tests skipped
* 3 tests failed

## Failed Tests
(click on a test name to see its output)

### lld
<details>
<summary>lld.ELF/sparcv9-plt.s</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-mc -filetype=obj -triple=sparcv9 /home/gha/actions-runner/_work/llvm-project/llvm-project/lld/test/ELF/sparcv9-plt.s -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/sparcv9-plt.s.tmp.o
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-mc -filetype=obj -triple=sparcv9 /home/gha/actions-runner/_work/llvm-project/llvm-project/lld/test/ELF/sparcv9-plt.s -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/sparcv9-plt.s.tmp.o
# note: command had no output on stdout or stderr
# RUN: at line 3
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/ld.lld -shared /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/sparcv9-plt.s.tmp.o -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/sparcv9-plt.s.tmp.so
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/ld.lld -shared /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/sparcv9-plt.s.tmp.o -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/sparcv9-plt.s.tmp.so
# .---command stderr------------
# | ld.lld: error: relocation R_SPARC_WDISP30 cannot be used against symbol 'foo'; recompile with -fPIC
# | >>> defined in /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/sparcv9-plt.s.tmp.o
# | >>> referenced by /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/sparcv9-plt.s.tmp.o:(.text+0x0)
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>lld.ELF/sparcv9-reloc-additional.s</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-mc -filetype=obj -triple=sparcv9 /home/gha/actions-runner/_work/llvm-project/llvm-project/lld/test/ELF/sparcv9-reloc-additional.s -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/sparcv9-reloc-additional.s.tmp.o
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-mc -filetype=obj -triple=sparcv9 /home/gha/actions-runner/_work/llvm-project/llvm-project/lld/test/ELF/sparcv9-reloc-additional.s -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/sparcv9-reloc-additional.s.tmp.o
# note: command had no output on stdout or stderr
# RUN: at line 3
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/ld.lld /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/sparcv9-reloc-additional.s.tmp.o --defsym=abs8=0x7f --defsym=abs16=0x1234    --defsym=abs32=0x12345678 --defsym=abs64=0x123456789abcdef    --defsym=small=0x123 --defsym=zero=0    -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/sparcv9-reloc-additional.s.tmp
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/ld.lld /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/sparcv9-reloc-additional.s.tmp.o --defsym=abs8=0x7f --defsym=abs16=0x1234 --defsym=abs32=0x12345678 --defsym=abs64=0x123456789abcdef --defsym=small=0x123 --defsym=zero=0 -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/sparcv9-reloc-additional.s.tmp
# .---command stderr------------
# | ld.lld: error: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/sparcv9-reloc-additional.s.tmp.o:(.text+0x4): relocation R_SPARC_HIX22 out of range: 18446744073709551615 is not in [0, 4294967295]; references 'zero'
# | >>> defined in --defsym
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>lld.ELF/sparcv9-tls-dynamic.s</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-mc -filetype=obj -triple=sparcv9 /home/gha/actions-runner/_work/llvm-project/llvm-project/lld/test/ELF/sparcv9-tls-dynamic.s -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/sparcv9-tls-dynamic.s.tmp.o
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-mc -filetype=obj -triple=sparcv9 /home/gha/actions-runner/_work/llvm-project/llvm-project/lld/test/ELF/sparcv9-tls-dynamic.s -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/sparcv9-tls-dynamic.s.tmp.o
# note: command had no output on stdout or stderr
# RUN: at line 3
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/ld.lld -shared /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/sparcv9-tls-dynamic.s.tmp.o -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/sparcv9-tls-dynamic.s.tmp.so
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/ld.lld -shared /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/sparcv9-tls-dynamic.s.tmp.o -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/sparcv9-tls-dynamic.s.tmp.so
# note: command had no output on stdout or stderr
# RUN: at line 4
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-readelf -r /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/sparcv9-tls-dynamic.s.tmp.so | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/lld/test/ELF/sparcv9-tls-dynamic.s
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-readelf -r /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/sparcv9-tls-dynamic.s.tmp.so
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/lld/test/ELF/sparcv9-tls-dynamic.s
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/lld/test/ELF/sparcv9-tls-dynamic.s:6:10: error: CHECK: expected string not found in input
# | # CHECK: R_SPARC_TLS_DTPMOD64 a
# |          ^
# | <stdin>:1:1: note: scanning from here
# | 
# | ^
# | <stdin>:4:35: note: possible intended match here
# | 0000000000300598 000000000000004b R_SPARC_TLS_DTPMOD64 0
# |                                   ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/lld/test/ELF/sparcv9-tls-dynamic.s
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |            1:  
# | check:6'0    {   search range start (exclusive)
# | check:6'1        error: no match found in search range
# |            2: Relocation section '.rela.dyn' at offset 0x328 contains 4 entries: 
# |            3:  Offset Info Type Symbol's Value Symbol's Name + Addend 
# |            4: 0000000000300598 000000000000004b R_SPARC_TLS_DTPMOD64 0 
# | check:6'2                                       ?                        possible intended match
# |            5: 00000000003005a8 000000030000004b R_SPARC_TLS_DTPMOD64 0000000000000000 a + 0 
# |            6: 00000000003005b0 000000030000004d R_SPARC_TLS_DTPOFF64 0000000000000000 a + 0 
# |            7: 00000000003005b8 000000040000004f R_SPARC_TLS_TPOFF64 0000000000000008 b + 0 
# |            8:  
# |            9: Relocation section '.rela.plt' at offset 0x388 contains 1 entries: 
# |           10:  Offset Info Type Symbol's Value Symbol's Name + Addend 
# |           11: 0000000000200480 0000000100000015 R_SPARC_JMP_SLOT 0000000000000000 __tls_get_addr + 0 
# | check:6'3                                                                                            } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

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


More information about the llvm-commits mailing list