[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Patchless modification of Lua source code
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 21 Nov 2018 09:12:20 -0200
> The suggestion that the linker can do the work without the need for
> patching the Lua core is due to Luiz.
That has been my experience in many years without exception.
The C standard is talking about the definition of symbols but it never
mentions a linker or how it should work, AFAIR. The linker is just
implementing the requirements in the C standard in a reasonable and
convenient way: it resolves symbols as it sees definitions for them. A
library is not meant to be totally incorporated into the program; only
modules that provide definitions for the program are incorporated.
Again, this is reasonable and convenient, and works extremely well in
practice. It has been like that for many decades.