On Sun, 23 Mar 2025, Peter Skvarka wrote:
it complains:
...kobj_checksyms, 1036: [./module_1.kmod]: linker error: global symbol
`MyFunctionName' redefined
Are names from all text sections put into global namespace ?
Yes
How to resolve it properly ?
Make a 3rd module with the shared/common routines, and make both
module_1 and module_2 depend-on (require module_subr)
+---------------------+--------------------------+----------------------+
| Paul Goyette (.sig) | PGP Key fingerprint: | E-mail addresses: |
| (Retired) | 1B11 1849 721C 56C8 F63A | p...@whooppee.com |
| Software Developer | 6E2E 05FD 15CE 9F2D 5102 | pgoye...@netbsd.org |
| & Network Engineer | | pgoyett...@gmail.com |
+---------------------+--------------------------+----------------------+