From d242e6b962173eb74a206d3e129ce84deda46a3c Mon Sep 17 00:00:00 2001 From: Emil Fresk Date: Mon, 30 Mar 2020 09:48:32 +0200 Subject: [PATCH] Added .note (INFO) section --- link.x.in | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/link.x.in b/link.x.in index 4db25fa8..15372997 100644 --- a/link.x.in +++ b/link.x.in @@ -148,6 +148,14 @@ SECTIONS KEEP(*(.got .got.*)); } + /* ## .note */ + /* Info section used for storing notes or related data in the binary. This is not loaded, only + available in the final elf. */ + .note (INFO) : + { + KEEP(*(.note .note.*)); + } + /* ## Discarded sections */ /DISCARD/ : {