logoalt Hacker News

j16sdiztoday at 12:34 AM3 repliesview on HN

> backed by its own ELF loader (x86-64 and aarch64) and a glibc ABI bridge

Yacks


Replies

mananaysiempretoday at 1:07 AM

If you want to load the OpenGL/Vulkan vendor driver then unfortunately you don’t have much of a choice: those are linked against glibc, and I believe generally also against libwayland so screw off if you want a different protocol library (I might be wrong about the latter part). If you instead want to load plugins or whatnot into your statically linked executable, then personally I’d argue that you shouldn’t be emulating Linux dynamic linking semantics at all, because the whole late-bound global namespace thing is silly and wrong. (Solaris, which is where Glibc took this model from, moved away from it[1] as much as compatibility allowed, and so did Darwin[2], whereas Windows never made the mistake to begin with, but Glibc persisted and Musl copied it.)

[1] https://www.linker-aliens.org/blogs/rie/entry/direct_binding...

[2] https://web.archive.org/web/20011004090044/http://developer....

fabiensanglardtoday at 12:41 AM

Please elaborate and explain to people with less knowledge why this is bad.

show 1 reply
lunixbochstoday at 12:41 AM

similar energy to my https://github.com/lunixbochs/crossldso

show 1 reply