Introducing ELF2.0
The Cuthour
cuthour@gmail.com
Wed Jan 29 19:21:38 GMT 2025
Hi
>> The goal here is Relinkability. Even in object-oriented languages,
>> binary Relinkability should be a given. [...]
>
> You have identified a Solution but not a Problem.
Suppose we have the following two classes:
=== Vec.h ===
class Vec {
int x, y, z;
};
=== end Vec.h ===
=== Pix.h ===
class Pix: Vec {
int r, g, b;
};
=== end Pix.h ===
If we add or remove a member variable in class Vec, it requires
recompiling not only Vec.cc but also Pix.cc. I believe this is
a problem. Pix.o should be relinkable.
More information about the Binutils
mailing list