2
<p>oh, i figured it out</p><p>clang -target x86_64-windows-msvc puts the comment into a .drectve section. </p><p>clang -target x86_64-windows-gnu silently ignores it, presumably because mingw doesn&#39;t define anywhere to put it. </p><p>clang -target x86_64-linux-gnu puts it into an SHT_LLVM_DEPENDENT_LIBRARIES section because LLVM has defined that this is where it goes</p>
<p>clang -fuse-ld=lld -target x86_64-linux-gnu: of course <a href="https://mastodon.social/tags/pragma" class="mention hashtag" rel="tag">#<span>pragma</span></a> comment(lib, &quot;-lX11&quot;) works<br />clang -fuse-ld=lld -target x86_64-windows-gnu: of course <a href="https://mastodon.social/tags/pragma" class="mention hashtag" rel="tag">#<span>pragma</span></a> comment(lib, &quot;-lws2_32&quot;) is silently ignored</p><p>i feel like i&#39;m in a fever dream</p>
<p>i just found out that `<a href="https://mastodon.social/tags/pragma" class="mention hashtag" rel="tag">#<span>pragma</span></a> comment(lib, ...)` works with clang on an ELF target but not on a COFF target. the</p><p>i... what? how do you even end up in this situation? i&#39;m completely lost</p>
<p><span class="h-card" translate="no"><a href="https://mastodon.social/@gamingonlinux" class="u-url mention">@<span>gamingonlinux</span></a></span> oh nice! Old enough a game that itโ€™ll run on my โ€œintelโ€ graphics laptop too haha ๐Ÿ˜ Thanks for sharing that ^_^</p>
<p>Half-Life 2 free to keep until November 18th, Episodes One &amp; Two now included with a huge update <a href="https://www.gamingonlinux.com/2024/11/half-life-2-free-to-keep-until-november-18th-episodes-one-two-now-included-with-a-huge-update/" target="_blank" rel="nofollow noopener noreferrer" translate="no"><span class="invisible">https://www.</span><span class="ellipsis">gamingonlinux.com/2024/11/half</span><span class="invisible">-life-2-free-to-keep-until-november-18th-episodes-one-two-now-included-with-a-huge-update/</span></a></p><p><a href="https://mastodon.social/tags/Linux" class="mention hashtag" rel="tag">#<span>Linux</span></a> <a href="https://mastodon.social/tags/LinuxGaming" class="mention hashtag" rel="tag">#<span>LinuxGaming</span></a> <a href="https://mastodon.social/tags/PCGaming" class="mention hashtag" rel="tag">#<span>PCGaming</span></a></p>
<p><span class="h-card" translate="no"><a href="https://hachyderm.io/@pinskia" class="u-url mention">@<span>pinskia</span></a></span> happy to have contributed to avoiding a potential disaster of incompatibility ^_^</p><p>also there is SHT_LLVM_LINKER_OPTIONS with a somewhat weird design (it has -l and -L only and gives them different names)</p>
<p><span class="h-card" translate="no"><a href="https://mastodon.social/@whitequark" class="u-url mention">@<span>whitequark</span></a></span> thats in the level of &quot;got top 10 by going grep -r &#39;flag:&quot; / in multiple compititions</p>
<p>FUN FACT: `objdump` has a capture-the-flag mode! use `objdump --ctf=&lt;section&gt;` to retrieve the flag from a binary</p>
<p><span class="h-card" translate="no"><a href="https://mastodon.social/@whitequark" class="u-url mention">@<span>whitequark</span></a></span> Amazing ๐Ÿ˜†</p>