unix: duplicate symbols in the kernel
When built with gcc 10, krtld will report duplicate symbols swapinfo and v, and indeed:
swapinfo is defined in uts/common/vm/vm_swap.c and in uts/vcommon/conf/param.c
This patch does change instance in vm_swap to extern. Duplicate swapinfo does cause kernel panic on boot (due to unexpected values in structure).
struct var v is defined in uts/common/os/space.c and in uts/vcommon/conf/param.c
This patch does remove instance from space.c.
Testing done: build/install/boot (gcc10 and 7).
Updated by Electric Monk about 1 month ago
- Status changed from In Progress to Closed
- % Done changed from 90 to 100
commit 6cdd461fe55315d9bc0ba40ea7da22cddbdcf784 Author: Toomas Soome <firstname.lastname@example.org> Date: 2020-06-11T06:31:51.000Z 12803 unix: duplicate symbols in the kernel Reviewed by: Igor Kozhukhov <email@example.com> Reviewed by: Andrew Stormont <firstname.lastname@example.org> Reviewed by: Yuri Pankov <email@example.com> Approved by: Robert Mustacchi <firstname.lastname@example.org>