git: vkernel - Bring back .hash section
Antonio Huete Jimenez
tuxillo at crater.dragonflybsd.org
Sun Nov 1 04:56:42 PST 2015
commit d3bbf4cdcbe8309843ea43f5acff51bb385f44c0
Author: Antonio Huete Jimenez <tuxillo at quantumachine.net>
Date: Sun Nov 1 13:40:54 2015 +0100
vkernel - Bring back .hash section
As of the switch to GCC 5 the default hash style to ld has changed from both
(sysv,gnu) to gnu alone. This results in binaries without a .hash section
which is fine for userland binaries but not for kernel ones since our kernel
linker uses .hash section to resolve its own symbols.
With the missing .hash section the vkernel kernel linker was not able do
symbol lookups and that rendered kvm(3) useless and all its consumers stopped
working.
During the vkernel build, SYSTEM_LD is changed so that the normal buildkernel
settings are overridden so by changing the parameters passed to ld we bring
back the .hash section.
Summary of changes:
sys/platform/vkernel64/conf/Makefile | 4 ++++
1 file changed, 4 insertions(+)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d3bbf4cdcbe8309843ea43f5acff51bb385f44c0
--
DragonFly BSD source repository
More information about the Commits
mailing list