<feed xmlns='http://www.w3.org/2005/Atom'>
<title>antcc/test/15-reloc.c, branch trunk</title>
<subtitle>A little C compiler</subtitle>
<id>https://git.lemon.rip/antcc/atom?h=trunk</id>
<link rel='self' href='https://git.lemon.rip/antcc/atom?h=trunk'/>
<link rel='alternate' type='text/html' href='https://git.lemon.rip/antcc/'/>
<updated>2025-12-13T16:39:08+00:00</updated>
<entry>
<title>c: handle more static eval edgecases for int -&gt; ptr</title>
<updated>2025-12-13T16:39:08+00:00</updated>
<author>
<name>lemon</name>
<email>lsof@mailbox.org</email>
</author>
<published>2025-12-13T16:34:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lemon.rip/antcc/commit/?id=6c7cdc537b7b341f9ca25a3e8b61de46c99840e7'/>
<id>urn:sha1:6c7cdc537b7b341f9ca25a3e8b61de46c99840e7</id>
<content type='text'>
sqlite3 was falling back to `((void*)&amp;((char*)0)[X])` for INT_TO_PTR,
which this handles now.
</content>
</entry>
<entry>
<title>Add -O optimization flag</title>
<updated>2025-12-13T13:25:13+00:00</updated>
<author>
<name>lemon</name>
<email>lsof@mailbox.org</email>
</author>
<published>2025-12-13T13:25:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lemon.rip/antcc/commit/?id=f403e250bf4474cead6a6cbe5e917488f39163e9'/>
<id>urn:sha1:f403e250bf4474cead6a6cbe5e917488f39163e9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix position independent loads of function symbols.</title>
<updated>2025-12-13T13:24:30+00:00</updated>
<author>
<name>lemon</name>
<email>lsof@mailbox.org</email>
</author>
<published>2025-12-13T13:21:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lemon.rip/antcc/commit/?id=854df54e1839c8b96d1aaa9aeaa32c2ebbf535f8'/>
<id>urn:sha1:854df54e1839c8b96d1aaa9aeaa32c2ebbf535f8</id>
<content type='text'>
For `extern int x[1];`, can use PCREL32 for &amp;x. But for `extern int
x(int)`, must use GOTREL, when not being called directly (that's PLT).
Therefore the type of an external symbol (actually just whether it
denotes a function) matters when deciding what kind of relocation to
emit, so keep that information.
</content>
</entry>
</feed>
