@klardotsh @josch @whitequark I find it somewhat readable, sure short variable names but strncmp is doomed to be like that.
The unsigned char cast is interesting, not sure what it's for and I guess could use a comment but it's not really worrying. The printf functions in musl are more annoying to read and I think dalias has made them more readable recently.
Meanwhile glibc it's:
- layers and layers of macros for even trivial functions, making it a pain to debug;
- dangerous features like ifunc and nsswitch.conf (dynamically loading authentication libraries is a hard no for me);
- ld.so having all kinds of questionable features making it a source of exploits for setuid binaries;
- python and perl as build dependencies, making it a *very* long adventure to bootstrap from full-source;
…
Advanced #Programming in the #UNIX Environment
Week 11, Of Linkers and Loaders
Building on top of what we discussed in Week 5 in the context of the compiler chain, we take a look at how a relocatable object file is turned into an executable by the dynamic linker (ld) and how an executable is loaded into memory by the run-time link-editor (ld.so or ld.elf_so).
GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.