tech-kern archive

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

Re: Linker error (multiple definition) during LD_STAGE 2 with custom scheduler



On Fri, Jun 19, 2026 at 10:42:19PM +0300, sewas1399%gmail.com@localhost 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


Home | Main Index | Thread Index | Old Index