From a1da9dde5370eaacc370116249b025b77c952a20 Mon Sep 17 00:00:00 2001 From: Tim Zimmermann Date: Sun, 15 Oct 2023 14:57:14 +0200 Subject: [PATCH] bpf: Update logging functions to work with BTF * Based on https://github.com/torvalds/linux/commit/430e68d10baf55e4c40d4dd1de8201c1caf5dddd, https://github.com/torvalds/linux/commit/77d2e05abd45886dcad2b632c738cf46b9f7c19e and https://github.com/torvalds/linux/commit/a2a7d5701052542cd2260e7659b12443e0a74733 Change-Id: I27e2c804726078646ca9beda31cbae2a745dfd47 --- scripts/module-lto.lds | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 scripts/module-lto.lds diff --git a/scripts/module-lto.lds b/scripts/module-lto.lds new file mode 100644 index 000000000000..d0699ae19e0d --- /dev/null +++ b/scripts/module-lto.lds @@ -0,0 +1,22 @@ + +SECTIONS { + /DISCARD/ : { + *(.eh_frame) + } + .bss : { + *(.bss .bss.[0-9a-zA-Z_]*) + *(.bss..L*) + } + .data : { + *(.data .data.[0-9a-zA-Z_]*) + *(.data..L*) + } + .rodata : { + *(.rodata .rodata.[0-9a-zA-Z_]*) + *(.rodata..L*) + } + .text : ALIGN((1 << 12)) { + *(.text.__cfi_check) + *(.text .text.[0-9a-zA-Z_]* .text..L.cfi*) + } +}