summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2021-03-09 18:26:50 +0100
committerLars Wendler <polynomial-c@gentoo.org>2021-03-09 18:27:17 +0100
commit55c76738a29a26890dcadd99a494f58a2a926f63 (patch)
tree9c5e87dd1e2fbbcb6940d0183e4e57bf2e5caded /app-emulation/virtualbox-modules
parentapp-metrics/node_exporter: 1.1.2 bump (diff)
downloadgentoo-55c76738a29a26890dcadd99a494f58a2a926f63.tar.gz
gentoo-55c76738a29a26890dcadd99a494f58a2a926f63.tar.bz2
gentoo-55c76738a29a26890dcadd99a494f58a2a926f63.zip
app-emulation/virtualbox-modules: Fixed build with binutils-2.36
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'app-emulation/virtualbox-modules')
-rw-r--r--app-emulation/virtualbox-modules/files/virtualbox-modules-6.1.18-binutils-2.36.patch39
-rw-r--r--app-emulation/virtualbox-modules/virtualbox-modules-6.1.18.ebuild1
2 files changed, 40 insertions, 0 deletions
diff --git a/app-emulation/virtualbox-modules/files/virtualbox-modules-6.1.18-binutils-2.36.patch b/app-emulation/virtualbox-modules/files/virtualbox-modules-6.1.18-binutils-2.36.patch
new file mode 100644
index 000000000000..2eaeb1ea3380
--- /dev/null
+++ b/app-emulation/virtualbox-modules/files/virtualbox-modules-6.1.18-binutils-2.36.patch
@@ -0,0 +1,39 @@
+--- virtualbox-modules-6.1.18/vboxdrv/SUPDrvTracer.c
++++ virtualbox-modules-6.1.18/vboxdrv/SUPDrvTracer.c
+@@ -1472,29 +1472,32 @@
+ __asm__("\
+ .section .text \n\
+ \n\
+- .p2align 2,,3 \n\
++ .p2align 4 \n\
+ .global SUPR0TracerFireProbe \n\
++ .type SUPR0TracerFireProbe, @function \n\
+ SUPR0TracerFireProbe: \n\
+ ");
+ # if defined(RT_ARCH_AMD64)
+-__asm__(" \
+- movq g_pfnSupdrvProbeFireKernel(%rip), %rax \n\
++__asm__("\
++ movq g_pfnSupdrvProbeFireKernel(%rip), %rax \n\
+ jmp *%rax \n\
+ ");
+ # elif defined(RT_ARCH_X86)
+ __asm__("\
+- movl g_pfnSupdrvProbeFireKernel, %eax \n\
++ movl g_pfnSupdrvProbeFireKernel, %eax \n\
+ jmp *%eax \n\
+ ");
+ # else
+ # error "Which arch is this?"
+ # endif
+ __asm__("\
++ .size SUPR0TracerFireProbe, . - SUPR0TracerFireProbe \n\
+ \n\
+ .type supdrvTracerProbeFireStub,@function \n\
+ .global supdrvTracerProbeFireStub \n\
+ supdrvTracerProbeFireStub: \n\
+ ret \n\
++ .size supdrvTracerProbeFireStub, . - supdrvTracerProbeFireStub \n\
+ \n\
+ .previous \n\
+ ");
diff --git a/app-emulation/virtualbox-modules/virtualbox-modules-6.1.18.ebuild b/app-emulation/virtualbox-modules/virtualbox-modules-6.1.18.ebuild
index bbc7f312dbe5..17dbf76a1d40 100644
--- a/app-emulation/virtualbox-modules/virtualbox-modules-6.1.18.ebuild
+++ b/app-emulation/virtualbox-modules/virtualbox-modules-6.1.18.ebuild
@@ -31,6 +31,7 @@ MODULESD_VBOXNETFLT_ENABLED="no"
PATCHES=(
"${FILESDIR}/${P}-linux-5.11.patch" #762994
+ "${FILESDIR}/${P}-binutils-2.36.patch"
)
pkg_setup() {