Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Weak x86 aliases




> On Dec 28, 2018, at 1:32 PM, Paul Goyette <paul%whooppee.com@localhost> wrote:
> 
> The in-kernel linker doesn't deal with weak symbols at all.  It would
> need a lot of thought to get it right.  For example, if module A
> (containing a weak reference) gets loaded, its weak references don't
> resolve.  Then module B gets loaded and defines the symbol(s).  Do we
> "go back" and re-run the linker for module A?  Or do we allow the
> results to be different depending on module load order?  (If module B
> were loaded first, and then module A, the weak reference would get
> resolved.)

This is why we should't try to support them in the kernel :-)

-- thorpej



Home | Main Index | Thread Index | Old Index