<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/lld, branch users/fmayer/fmayer-patch-1</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/'/>
<entry>
<title>[LLD][CMake][MSVC] Install PDBs alongside executables (#126680)</title>
<updated>2025-05-23T19:58:30+00:00</updated>
<author>
<name>Miguel A. Arroyo</name>
<email>miguel.arroyo@rockstargames.com</email>
</author>
<published>2025-05-23T19:58:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=e100f54a0342c2c44974b34254eebf23b8a6339c'/>
<id>e100f54a0342c2c44974b34254eebf23b8a6339c</id>
<content type='text'>
* Follows up on https://github.com/llvm/llvm-project/pull/120683
installing PDBs for LLD.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Follows up on https://github.com/llvm/llvm-project/pull/120683
installing PDBs for LLD.</pre>
</div>
</content>
</entry>
<entry>
<title>[CMake] respect LLVMConfig.cmake's LLVM_DEFINITIONS in standalone builds (#138587)</title>
<updated>2025-05-22T05:14:13+00:00</updated>
<author>
<name>jeremyd2019</name>
<email>github@jdrake.com</email>
</author>
<published>2025-05-22T05:14:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=ba4bd3f46e97b5637b16a0fa74b064fb3e6db8ff'/>
<id>ba4bd3f46e97b5637b16a0fa74b064fb3e6db8ff</id>
<content type='text'>
In #138329, _GNU_SOURCE was added for Cygwin, but when building Clang
standalone against an installed LLVM this definition was not picked up,
resulting in undefined strnlen. Follow the documentation in
https://llvm.org/docs/CMake.html#embedding-llvm-in-your-project and add
the LLVM_DEFINITIONS in standalone projects' cmakes.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In #138329, _GNU_SOURCE was added for Cygwin, but when building Clang
standalone against an installed LLVM this definition was not picked up,
resulting in undefined strnlen. Follow the documentation in
https://llvm.org/docs/CMake.html#embedding-llvm-in-your-project and add
the LLVM_DEFINITIONS in standalone projects' cmakes.</pre>
</div>
</content>
</entry>
<entry>
<title>Fix regression tests with bad FileCheck checks (#140373)</title>
<updated>2025-05-22T04:59:57+00:00</updated>
<author>
<name>Mohammad Bashir</name>
<email>157402336+youngbash88@users.noreply.github.com</email>
</author>
<published>2025-05-22T04:59:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=bcdce987c08bc90f30a44903a4f7d801099020f1'/>
<id>bcdce987c08bc90f30a44903a4f7d801099020f1</id>
<content type='text'>
Fixes https://github.com/llvm/llvm-project/issues/140149</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes https://github.com/llvm/llvm-project/issues/140149</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "[LLVM] Use `reportFatalUsageError` for LTO usage errors" (#141000)</title>
<updated>2025-05-22T04:07:38+00:00</updated>
<author>
<name>Kewen12</name>
<email>Kewen.Meng@amd.com</email>
</author>
<published>2025-05-22T04:07:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=851da603045654f0adcf29927a2795a2a8f38c14'/>
<id>851da603045654f0adcf29927a2795a2a8f38c14</id>
<content type='text'>
The PR causes check-lld fail:
&gt;TEST 'lld :: COFF/lto-cache-errors.ll'

Tested on local revert and pass the check. 

Reverts llvm/llvm-project#140955</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The PR causes check-lld fail:
&gt;TEST 'lld :: COFF/lto-cache-errors.ll'

Tested on local revert and pass the check. 

Reverts llvm/llvm-project#140955</pre>
</div>
</content>
</entry>
<entry>
<title>[LLVM] Use `reportFatalUsageError` for LTO usage errors (#140955)</title>
<updated>2025-05-21T22:21:59+00:00</updated>
<author>
<name>bd1976bris</name>
<email>bd1976llvm@gmail.com</email>
</author>
<published>2025-05-21T22:21:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=b4d2e502e06fb96a124ef4c99668531a4c6abd3d'/>
<id>b4d2e502e06fb96a124ef4c99668531a4c6abd3d</id>
<content type='text'>
Usage errors in `LTOBackend.cpp` were previously, misleadingly, reported
as internal crashes.

This PR updates `LTOBackend.cpp` to use `reportFatalUsageError` for
reporting usage-related issues.

LLVM Issue: https://github.com/llvm/llvm-project/issues/140953
Internal Tracker: TOOLCHAIN-17744</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Usage errors in `LTOBackend.cpp` were previously, misleadingly, reported
as internal crashes.

This PR updates `LTOBackend.cpp` to use `reportFatalUsageError` for
reporting usage-related issues.

LLVM Issue: https://github.com/llvm/llvm-project/issues/140953
Internal Tracker: TOOLCHAIN-17744</pre>
</div>
</content>
</entry>
<entry>
<title>[ELF] Error if a section address is smaller than image base</title>
<updated>2025-05-21T16:19:47+00:00</updated>
<author>
<name>Fangrui Song</name>
<email>i@maskray.me</email>
</author>
<published>2025-05-21T16:19:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=0edc8b59ab82c868cb76b5b7339916c21d0a35ee'/>
<id>0edc8b59ab82c868cb76b5b7339916c21d0a35ee</id>
<content type='text'>
When using `-no-pie` without a `SECTIONS` command, the linker uses the
target's default image base. If `-Ttext=` or `--section-start` specifies
an output section address below this base, the result is likely
unintended.

- With `--no-rosegment`, the PT_LOAD segment covering the ELF header cannot include `.text` if `.text`'s address is too low, causing an `error: output file too large`.
- With default `--rosegment`:
  - If a read-only section (e.g., `.rodata`) exists, a similar `error: output file too large` occurs.
  - Without read-only sections, the PT_LOAD segment covering the ELF header and program headers includes no sections, which is unusual and likely undesired. This also causes non-ascending PT_LOAD `p_vaddr` values related to the PT_LOAD that overlaps with PT_PHDR (#138584).

To prevent these issues, report an error if a section address is below
the image base and suggest `--image-base`. This check also applies when
`--image-base` is explicitly set but is skipped when a `SECTIONS`
command is used.

Pull Request: https://github.com/llvm/llvm-project/pull/140187
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When using `-no-pie` without a `SECTIONS` command, the linker uses the
target's default image base. If `-Ttext=` or `--section-start` specifies
an output section address below this base, the result is likely
unintended.

- With `--no-rosegment`, the PT_LOAD segment covering the ELF header cannot include `.text` if `.text`'s address is too low, causing an `error: output file too large`.
- With default `--rosegment`:
  - If a read-only section (e.g., `.rodata`) exists, a similar `error: output file too large` occurs.
  - Without read-only sections, the PT_LOAD segment covering the ELF header and program headers includes no sections, which is unusual and likely undesired. This also causes non-ascending PT_LOAD `p_vaddr` values related to the PT_LOAD that overlaps with PT_PHDR (#138584).

To prevent these issues, report an error if a section address is below
the image base and suggest `--image-base`. This check also applies when
`--image-base` is explicitly set but is skipped when a `SECTIONS`
command is used.

Pull Request: https://github.com/llvm/llvm-project/pull/140187
</pre>
</div>
</content>
</entry>
<entry>
<title>[lld][WebAssembly] Set the target-cpu in LTO config (#140010)</title>
<updated>2025-05-21T00:29:01+00:00</updated>
<author>
<name>YAMAMOTO Takashi</name>
<email>yamamoto@midokura.com</email>
</author>
<published>2025-05-21T00:29:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=80f0ffb937940cf98d9dd6c6b5c1b8772e35bab2'/>
<id>80f0ffb937940cf98d9dd6c6b5c1b8772e35bab2</id>
<content type='text'>
I couldn't find an existing way to pass -mcpu=lime1 equivalent to LTO
codegen.
This commit would privide one. With this commit, you can do so by
passing
`-mllvm -mcpu=lime1` to wasm-ld.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I couldn't find an existing way to pass -mcpu=lime1 equivalent to LTO
codegen.
This commit would privide one. With this commit, you can do so by
passing
`-mllvm -mcpu=lime1` to wasm-ld.</pre>
</div>
</content>
</entry>
<entry>
<title>[lld] Drop const from a return type (NFC) (#140667)</title>
<updated>2025-05-20T04:37:48+00:00</updated>
<author>
<name>Kazu Hirata</name>
<email>kazu@google.com</email>
</author>
<published>2025-05-20T04:37:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=575f66cf5e1be238226970fcd84fdae59d41fd18'/>
<id>575f66cf5e1be238226970fcd84fdae59d41fd18</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[lld] Use llvm::stable_sort (NFC) (#140488)</title>
<updated>2025-05-19T13:20:00+00:00</updated>
<author>
<name>Kazu Hirata</name>
<email>kazu@google.com</email>
</author>
<published>2025-05-19T13:20:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=91a7085faf268b595e597fa2a2b979ca7b8de0a8'/>
<id>91a7085faf268b595e597fa2a2b979ca7b8de0a8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[ELF,test] Specify image base to make -Ttext/--section-start tests less sensitive</title>
<updated>2025-05-17T06:57:44+00:00</updated>
<author>
<name>Fangrui Song</name>
<email>i@maskray.me</email>
</author>
<published>2025-05-17T06:57:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=07e2300a8c9c8a70384ddfe310cf3495fab1821c'/>
<id>07e2300a8c9c8a70384ddfe310cf3495fab1821c</id>
<content type='text'>
Many tests specify -Ttext, -Tdata, or --section-start without SECTIONS
commands. When the specified address is lower than the image base,

* In the default --ro-segment case, there will be a read-only PT_LOAD segment covering ELF header/program headers, which may cover no section (as many tests omit .rodata). This appears unusual and has non-ascending p_vaddr.
* In the --no-rosegment case, an `error: output file too large` occurs.

We will add a diagnostic (#140187) and possibly change layout. Add
--image-base to make these tests less sensitive.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Many tests specify -Ttext, -Tdata, or --section-start without SECTIONS
commands. When the specified address is lower than the image base,

* In the default --ro-segment case, there will be a read-only PT_LOAD segment covering ELF header/program headers, which may cover no section (as many tests omit .rodata). This appears unusual and has non-ascending p_vaddr.
* In the --no-rosegment case, an `error: output file too large` occurs.

We will add a diagnostic (#140187) and possibly change layout. Add
--image-base to make these tests less sensitive.
</pre>
</div>
</content>
</entry>
</feed>
