From 8076b9ab4433cb6802040c4a1c67a363254e929d Mon Sep 17 00:00:00 2001 From: "B. Blechschmidt" Date: Tue, 28 Feb 2023 21:03:13 +0100 Subject: [PATCH] Support building runsc with legacy GNU linker This commit enables building with the legacy GNU linker that emits the .note.gnu.property section which conflicts with the .crblob section inside the sysmsg linker script. --- pkg/sentry/platform/systrap/sysmsg/pie.lds.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/sentry/platform/systrap/sysmsg/pie.lds.S b/pkg/sentry/platform/systrap/sysmsg/pie.lds.S index 9d7ad07ac..420a2b836 100644 --- a/pkg/sentry/platform/systrap/sysmsg/pie.lds.S +++ b/pkg/sentry/platform/systrap/sysmsg/pie.lds.S @@ -34,6 +34,6 @@ SECTIONS } =0x00000000, /DISCARD/ : { - *(.interp) *(.gnu.hash) *(.hash) *(.dynamic) *(.dynsym) *(.dynstr) *(.rela.dyn) *(.eh_frame) + *(.interp) *(.gnu.hash) *(.hash) *(.dynamic) *(.dynsym) *(.dynstr) *(.rela.dyn) *(.eh_frame) *(.note.gnu.property) } }