<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/lld/ELF/ScriptLexer.cpp, branch main</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] Remove unused includes (NFC) (#141421)</title>
<updated>2025-05-25T17:55:39+00:00</updated>
<author>
<name>Kazu Hirata</name>
<email>kazu@google.com</email>
</author>
<published>2025-05-25T17:55:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=19f00c0570582e93140642cbb62e5b820722c8f1'/>
<id>19f00c0570582e93140642cbb62e5b820722c8f1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[ELF] Replace inExpr with lexState. NFC</title>
<updated>2025-02-01T23:49:08+00:00</updated>
<author>
<name>Fangrui Song</name>
<email>i@maskray.me</email>
</author>
<published>2025-02-01T23:49:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=5c3c0a8cec9205efba78583bd0b8a646270968a1'/>
<id>5c3c0a8cec9205efba78583bd0b8a646270968a1</id>
<content type='text'>
We may add another state State::Wild to behave more lik GNU ld.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We may add another state State::Wild to behave more lik GNU ld.
</pre>
</div>
</content>
</entry>
<entry>
<title>[ELF] Remove unneeded Twine()</title>
<updated>2024-11-17T04:32:44+00:00</updated>
<author>
<name>Fangrui Song</name>
<email>i@maskray.me</email>
</author>
<published>2024-11-17T04:32:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=483516fd83f000fd6b2ac1cde943f5639f72b9e9'/>
<id>483516fd83f000fd6b2ac1cde943f5639f72b9e9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[ELF] Migrate away from global ctx</title>
<updated>2024-11-15T06:17:10+00:00</updated>
<author>
<name>Fangrui Song</name>
<email>i@maskray.me</email>
</author>
<published>2024-11-15T06:17:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=e24457a330923dbc43a0e056deddb2d42c682e6c'/>
<id>e24457a330923dbc43a0e056deddb2d42c682e6c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[ELF] Replace errorCount with errCount(ctx)</title>
<updated>2024-11-07T17:06:01+00:00</updated>
<author>
<name>Fangrui Song</name>
<email>i@maskray.me</email>
</author>
<published>2024-11-07T17:06:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=ed6c106e6a9e4855f9bf328674be3d3c6ceb9586'/>
<id>ed6c106e6a9e4855f9bf328674be3d3c6ceb9586</id>
<content type='text'>
to reduce reliance on the global context.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
to reduce reliance on the global context.
</pre>
</div>
</content>
</entry>
<entry>
<title>[ELF] Replace error(...) with ErrAlways or Err</title>
<updated>2024-11-07T06:04:52+00:00</updated>
<author>
<name>Fangrui Song</name>
<email>i@maskray.me</email>
</author>
<published>2024-11-07T06:04:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=09c2c5e1e9f3b3bb17f777f153407430f3cef15e'/>
<id>09c2c5e1e9f3b3bb17f777f153407430f3cef15e</id>
<content type='text'>
Most are migrated to ErrAlways mechanically.
In the future we should change most to Err.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Most are migrated to ErrAlways mechanically.
In the future we should change most to Err.
</pre>
</div>
</content>
</entry>
<entry>
<title>[ELF] ScriptParser: pass Ctx to ScriptParser and ScriptLexer. NFC</title>
<updated>2024-09-21T18:06:06+00:00</updated>
<author>
<name>Fangrui Song</name>
<email>i@maskray.me</email>
</author>
<published>2024-09-21T18:06:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=cf57a670bb3b85a362098b931a3176f2debe6a6a'/>
<id>cf57a670bb3b85a362098b931a3176f2debe6a6a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[ELF] Respect --sysroot for INCLUDE</title>
<updated>2024-07-28T18:43:27+00:00</updated>
<author>
<name>Fangrui Song</name>
<email>i@maskray.me</email>
</author>
<published>2024-07-28T18:43:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=a7e8bddfc1ce3e9ef86f104a34f72ece72c23ba7'/>
<id>a7e8bddfc1ce3e9ef86f104a34f72ece72c23ba7</id>
<content type='text'>
If an included script is under the sysroot directory, when it opens an
absolute path file (`INPUT` or `GROUP`), add sysroot before the absolute
path. When the included script ends, the `isUnderSysroot` state is
restored.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If an included script is under the sysroot directory, when it opens an
absolute path file (`INPUT` or `GROUP`), add sysroot before the absolute
path. When the included script ends, the `isUnderSysroot` state is
restored.
</pre>
</div>
</content>
</entry>
<entry>
<title>[ELF] Fix INCLUDE cycle detection</title>
<updated>2024-07-28T00:25:13+00:00</updated>
<author>
<name>Fangrui Song</name>
<email>i@maskray.me</email>
</author>
<published>2024-07-28T00:25:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=8f72b0cb08d8b55ef13ed83af8dac2b7ac55208b'/>
<id>8f72b0cb08d8b55ef13ed83af8dac2b7ac55208b</id>
<content type='text'>
Fix #93947: the cycle detection mechanism added by
https://reviews.llvm.org/D37524 also disallowed including a file twice,
which is an unnecessary limitation.

Now that we have an include stack #100493, supporting multiple inclusion
is trivial. Note: a filename can be referenced with many different
paths, e.g. a.lds, ./a.lds, ././a.lds. We don't attempt to detect the
cycle in the earliest point.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix #93947: the cycle detection mechanism added by
https://reviews.llvm.org/D37524 also disallowed including a file twice,
which is an unnecessary limitation.

Now that we have an include stack #100493, supporting multiple inclusion
is trivial. Note: a filename can be referenced with many different
paths, e.g. a.lds, ./a.lds, ././a.lds. We don't attempt to detect the
cycle in the earliest point.
</pre>
</div>
</content>
</entry>
<entry>
<title>[ELF] Track line number precisely</title>
<updated>2024-07-27T21:46:41+00:00</updated>
<author>
<name>Fangrui Song</name>
<email>i@maskray.me</email>
</author>
<published>2024-07-27T21:46:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=9328c20cc80c4fb8dc86c3141e1be1739e07b3fc'/>
<id>9328c20cc80c4fb8dc86c3141e1be1739e07b3fc</id>
<content type='text'>
`getLineNumber` is both imprecise (when `INCLUDE` is used) and
inefficient (see https://reviews.llvm.org/D104137). Track line number
precisely now that we have `struct Buffer` abstraction from #100493.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`getLineNumber` is both imprecise (when `INCLUDE` is used) and
inefficient (see https://reviews.llvm.org/D104137). Track line number
precisely now that we have `struct Buffer` abstraction from #100493.
</pre>
</div>
</content>
</entry>
</feed>
