Re: Linker error (multiple definition) during LD_STAGE 2 with custom scheduler
Martin Husemann <[email protected]> Sat, 20 Jun 2026 08:41:30 +0200
| Newsgroups | gmane.os.netbsd.devel.kernel |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Jun 19, 2026 at 10:42:19PM +0300, [email protected] wrote: > My scheduler implements some of the core scheduling functions but still relies on kern_runq.c for the rest of the fallback logic. However, during LD_STAGE 2, the build fails with "multiple definition" errors because the linker hits identical symbols in both my scheduler's object file and kern_runq.o. You haven't given any examples of name collisions. Why don't you just give your functions different names? If you need to "override" some functions in kern_runq, something is wrong (where "something" could mean the scheduler abstraction in NetBSD or your design, or anything else). Please provide more details of what you are trying to do. Martin