News for hackers. Stuff that matters.
Re:Dynamic linking by iveqy on Friday June 26, 2020 @02:42PM (#23655426)
Suckless has a project to get a fully static compiled Linux environment. Unfortunately I don't know how far that have come
Re:Dynamic linking by mforney on Friday June 26, 2020 @03:37PM (#23656066)
I don't think stali has seen any activity in several years.

As far as I know, the only completely statically linked Linux distribution that is actively developed is my own project (inspired by stali), oasis: https://github.com/oasislinux/oasis

Re:Dynamic linking by loeg on Friday June 26, 2020 @03:58PM (#23656268)
Do you static-link Linux? :-)
Re:Dynamic linking by mforney on Friday June 26, 2020 @04:14PM (#23656452)
I'm not sure what you mean here. Are you asking whether I build my kernel drivers as modules or built-in? Personally, I build my kernels without modules, but I've never heard of that technique being called "static-linking Linux".
Re:Dynamic linking by loeg on Friday June 26, 2020 @07:30PM (#23658171)
Yes, exactly. Loadable modules are a form of dynamic linking. I've never heard it called "static-linking Linux," either, but I think static / dynamic linking is well understood, and I'm happy you understood the meaning from context.
Re:Dynamic linking by __s on Friday June 26, 2020 @03:12PM (#23655782)
Re:Dynamic linking by cryptonector on Friday June 26, 2020 @04:02PM (#23656329)
The thing that's missing is static link semantics that don't suck.
Re:Dynamic linking by cosmojg on Friday June 26, 2020 @11:44PM (#23659366)
So let's fix the problem! How can we get better semantics? Have any hypothetical solutions in mind?
Re:Dynamic linking by cryptonector on Saturday June 27, 2020 @12:56AM (#23659611)
I've outlined it already, but let me do it again for you:

1) when making a static link archive (a .a file), include a .o with a static symbol(s) whose values(s) records the metadata that ELF would have recorded, which here is: a) dependencies, b) how to find them, c) the mapfile / version-script (at least which symbols are symbolic, protected, or demoted to local, and which, if any, are interposers.

2) on final link-edits only the direct dependency -lfoo arguments should be needed, and then link-editor should find the dependencies' dependencies... by looking at the metadata recorded in the .a files.

Really, it's very simple. libstool is a very bad attempt at layering this on top of the linker (recording metadata in .la files), but it doesn't work well. This functionality has to be in the linkers.

Re:Dynamic linking by saagarjha on Saturday June 27, 2020 @05:28AM (#23660574)
Is it literally called libstool…