<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Glibc on Ubuntu Tips</title><link>https://ubuntips.com/tags/glibc/</link><description>Recent content in Glibc on Ubuntu Tips</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Wed, 25 Nov 2026 06:27:49 +0800</lastBuildDate><atom:link href="https://ubuntips.com/tags/glibc/index.xml" rel="self" type="application/rss+xml"/><item><title>Compiling Angie too, and the hardening my compiled PHP was missing</title><link>https://ubuntips.com/posts/compiling-angie-and-the-missing-hardening/</link><pubDate>Wed, 25 Nov 2026 06:00:00 +0800</pubDate><guid>https://ubuntips.com/posts/compiling-angie-and-the-missing-hardening/</guid><description>&lt;p&gt;&lt;a href="https://ubuntips.com/posts/why-the-from-source-php-was-slower/"&gt;The last post&lt;/a&gt; ended with one compiled php-fpm, built from upstream sources. This time I asked for the rest of the stack: Angie compiled the same way, glibc and libsystemd from source, smaller binaries, zlib-ng and Brotli, and the optimisations a distribution like CachyOS uses. Same Xeon E-2236 test host, fresh install with WordPress, XenForo and Chevereto, rotated benchmark rounds with the CPU clock pinned.&lt;/p&gt;&#10;&lt;h2 id="first-a-security-gap" class="heading-anchor"&gt;First, a security gap&lt;a class="anchor" href="#first-a-security-gap" aria-label="Link to section: First, a security gap"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Ubuntu&amp;rsquo;s gcc turns on a set of hardening flags by default: stack protector, stack-clash probes, &lt;code&gt;_FORTIFY_SOURCE&lt;/code&gt;, CET landing pads, full RELRO. Upstream clang from apt.llvm.org turns on none of them. My compiled php-fpm had been built without all five, while the package it replaces has every one. It now passes them explicitly, for PHP and for every library. It costs 0.5-2 % before BOLT, and it stays.&lt;/p&gt;</description></item></channel></rss>