tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: library in kernel space
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 | paul%whooppee.com@localhost |
| Software Developer | 6E2E 05FD 15CE 9F2D 5102 | pgoyette%netbsd.org@localhost |
| & Network Engineer | | pgoyette99%gmail.com@localhost |
+---------------------+--------------------------+----------------------+
Home |
Main Index |
Thread Index |
Old Index