Linux Distributions' Binary Audits May Not Detect Absolute Paths
Some Linux distributions and package managers audit binaries for non-relocatable absolute paths, but a GCC optimization may prevent detection of these paths. This optimization splits string constants into pieces, making it difficult to detect absolute paths using tools like grep or GNU binutils's strings.
Key points
- GCC optimization splits string constants into pieces
- This optimization can prevent detection of absolute paths
- Binary auditing may not detect absolute paths due to this optimization
Many Linux distributions and package managers audit binaries for non-relocatable absolute paths, which can cause issues if a binary contains a path that does not exist on the end-user's machine.
This audit process typically involves using tools like grep or GNU binutils's strings to detect absolute paths in the binary. However, a GCC optimization may prevent detection of these paths.
What's happening
The GCC optimization splits string constants into pieces, which can make it difficult to detect absolute paths. This optimization is used to improve performance by allowing the use of vectorized move instructions.
For example, if a string constant is copied into a buffer using std::string, strcpy, or memcpy, the string may be split into pieces. However, if a string is only passed around as a pointer, it will remain intact.
Source Hacker News Front Page — stoppels.ch/2026/11/12/paths-in-pieces.html ↗
Read next
🏢Big TechHugging Face CEO Vows to Defend Open-Source AI Following Jensen Huang's Departure
Hugging Face CEO Clément Delangue expressed regret over Jensen Huang's departure from Nvidia, assuring the community that his platform will intensify its support for open…
🏢Big TechGoogle Pixel Tag Performance Limited on Older Android Hardware
Google's new Pixel Tag Bluetooth tracker offers advanced precision features only when paired with devices supporting Bluetooth 6.0 and Android 9.0 or newer.
🚀Startups & FundingFormer Adobe Engineers Launch Phota Labs iOS App to Fix and Enhance Photos Using AI
Backed by a16z, a new iOS application called Phota Labs applies artificial intelligence to upgrade everyday snapshots while maintaining the authentic appearance of subjec…
🧠AI AnalysisFitbit Users Report Missing Health Metrics Following Recent Update
Fitbit users are encountering a bug in the Google Health app that hides crucial health data following recent software updates.
🔌Chips & HardwareFormer Nvidia CEO Jensen Huang Agrees to Congressional Deposition
Former Nvidia chief executive Jensen Huang will testify privately before U.S. House lawmakers before Thanksgiving following subpoena threats related to national security …
🧠AI AnalysisNvidia Ousts CEO Jensen Huang Amid Geopolitical and Misconduct Scandal
Nvidia has removed CEO Jensen Huang following revelations of personal misconduct involving an individual suspected of espionage and chip smuggling.