Source-Changes-HG archive

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

[src/trunk]: src/doc Add an entry regarding weak symbols



details:   https://anonhg.NetBSD.org/src/rev/5ac34eec173b
branches:  trunk
changeset: 447029:5ac34eec173b
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Fri Dec 28 21:37:56 2018 +0000

description:
Add an entry regarding weak symbols

diffstat:

 doc/TODO.modules |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 58c403232543 -r 5ac34eec173b doc/TODO.modules
--- a/doc/TODO.modules  Fri Dec 28 21:30:20 2018 +0000
+++ b/doc/TODO.modules  Fri Dec 28 21:37:56 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: TODO.modules,v 1.16 2018/12/13 11:28:00 pgoyette Exp $ */
+/* $NetBSD: TODO.modules,v 1.17 2018/12/28 21:37:56 pgoyette Exp $ */
 
 Some notes on the limitations of our current (as of 7.99.35) module
 subsystem.  This list was triggered by an Email exchange between
@@ -200,3 +200,11 @@
     no such device so we autoload /stand/.../x/x.kmod and initialize
     the module loaded, even if the loaded module is for some other
     device entirely!
+
+21. We currently do not support "weak" symbols in the in-kernel linker.
+    It would take some serious thought to get such support right.  For
+    example, consider module A with a weak reference to symbol S which
+    is defined in module B.  If module B is loaded first, and then
+    module A, the symbol gets resolved.  But if module A is loaded first,
+    the symbol won't be resolved.  If we subsequently load module B, we
+    would have to "go back" and re-run the linker for module A.



Home | Main Index | Thread Index | Old Index