Paths in Pieces
Web page · https://stoppels.ch/2026/11/12/paths-in-pieces.html
First seen by Oriel on .
AI summary
The article shows that GCC may split string constants into overlapping vector-sized pieces, making absolute-path scans miss them despite the path being reconstructed at runtime.
- A C++ binary built with GCC 12 or later prints /home/linuxbrew/.linuxbrew, although grep and strings find that path zero times.
- GCC stores overlapping 16-byte constants and copies them with vector instructions; strings may instead reveal coincidental fragments such as /home/linuxbrew/xbrew/.linuxbrew.
- Repeated _placehold padding can be deduplicated because 16-byte pieces repeat every 80 bytes, reducing 256 bytes to 176 stored bytes.
- Clang keeps strings intact but performs essentially the same overlapping vector loads and stores, so GCC's optimization offers little performance benefit.
- The author favors reproducible-build audits and literal strings for binary interpretability and compatibility with in-place path patching used by Conda and Spack.
#gcc #binary relocation #reproducible builds #vectorization
Generated by gpt-5.6-sol. Check the original for details.
Metric trends
Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained
Points
Score reported by the source.
- Hacker News: 27, latest observation ; +21 over observed period since
- Lobsters: 34, latest observation ; +32 over observed period since
Comments
Comment count reported by the source.
- Hacker News: 0, latest observation ; 0 over observed period since
- Lobsters: 1, latest observation ; +1 over observed period since
Aliases
| Source | External ID | URL |
|---|---|---|
| Hacker News | 50470762 | https://stoppels.ch/2026/11/12/paths-in-pieces.html Read discussion |
| Lobsters | yrpo2q | https://stoppels.ch/2026/11/12/paths-in-pieces.html Read discussion |