Re: [PATCH] um: Allow multiple symbol definitions for GCOV builds
Johannes Berg <[email protected]> Tue, 21 Jul 2026 23:58:37 +0200
| Newsgroups | gmane.linux.uml.devel |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 2026-07-08 at 16:40 -0600, Alex Hung wrote: > GCOV-enabled UML builds link GCC's libgcov into the final vmlinux > image. libgcov provides helper symbols such as mangle_path(), which > collide with kernel symbols of the same name (for example the one in > fs/seq_file.o). This makes the link fail: >=20 > ld: libgcov.a(_gcov.o): in function `mangle_path': > multiple definition of `mangle_path'; > fs/seq_file.o: first defined here >=20 > Pass --allow-multiple-definition to the linker when CONFIG_GCOV is set > so the final UML link succeeds while keeping the kernel-provided > definition. >=20 I cannot see how that would possibly result in correct behaviour (beyond being able to link)?? johannes