vkernel - Bring back .hash section
authorAntonio Huete Jimenez <tuxillo@quantumachine.net>
Sun, 1 Nov 2015 12:40:54 +0000 (13:40 +0100)
committerAntonio Huete Jimenez <tuxillo@quantumachine.net>
Sun, 1 Nov 2015 12:43:19 +0000 (13:43 +0100)
commitd3bbf4cdcbe8309843ea43f5acff51bb385f44c0
treefc40359dccc2d0160546d504460af60b76369dc2
parentaafe6cccf26a84b0d7728fef5d976c0d6c09e3c6
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.
sys/platform/vkernel64/conf/Makefile