4 ms·
> To avoid custom linker scripts (which I hate with a passion) lol why? i mean the syntax sucks but this seems like howling into the wind...
by almostgotcaught 2y ago
> To avoid custom linker scripts (which I hate with a passion)
lol why? i mean the syntax sucks but this seems like howling into the wind...
- Retr0id 2y agoFirstly, yes, the syntax sucks. But most of all it's a a moving target. Every so often the compiler will decide to emit some fancy new segment or other metadata, and your linker script won't know what to do with it, and you have to re-learn linker script syntax to fix it.
- almostgotcaught 2y ago-Wl,--orphan-handling=error but hey whatever floats your boat
- Retr0id 2y agoThat doesn't solve the problem, though. orphan-handling lets you choose between loud breakage and quiet breakage. I want no breakage!
- saurik 2y agoThis is also why I avoid them like the plague. I would be a lot less annoyed by the concept of linker scripts if the mechanism were more set up as a concatenative language where you could provide a pile of modifications to behavior that add up to something useful, rather than having to whole-hog replace all of the behavior the compiler starts with (and like, in a world using clang/lld, which supports linker scripts but doesn't internally use them--meaning there is no "default" linker script you can dump/patch--the situation is even worse than it was before... I honestly have a hard time understanding why anyone considers this system acceptable).