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/ : {