Thread (68 messages) 68 messages, 9 authors, 2020-10-29

Re: [PATCH v6 27/29] x86/boot/compressed: Remove, discard, or assert for unwanted sections

From: Arvind Sankar <hidden>
Date: 2020-08-21 21:28:35
Also in: linux-arch, linux-efi, lkml

On Fri, Aug 21, 2020 at 02:21:34PM -0700, Kees Cook wrote:
On Fri, Aug 21, 2020 at 04:01:59PM -0400, Arvind Sankar wrote:
quoted
On Fri, Aug 21, 2020 at 12:43:08PM -0700, Kees Cook wrote:
quoted
In preparation for warning on orphan sections, stop the linker from
generating the .eh_frame* sections, discard unwanted non-zero-sized
generated sections, and enforce other expected-to-be-zero-sized sections
(since discarding them might hide problems with them suddenly gaining
unexpected entries).

Signed-off-by: Kees Cook <redacted>
 	.rel.dyn : {
-		*(.rel.*)
+		*(.rel.*) *(.rel_*)
 	}
 	ASSERT(SIZEOF(.rel.dyn) == 0, "Unexpected run-time relocations (.rel) detected!")
 
 	.rela.dyn : {
-		*(.rela.*)
+		*(.rela.*) *(.rela_*)
 	}
 	ASSERT(SIZEOF(.rela.dyn) == 0, "Unexpected run-time relocations (.rela) detected!")
 }
-- 
2.25.1
When do you get .rela_?
i386 builds, IIRC. I can try to hunt that down if you want?

-- 
Kees Cook
Nah, just curious.

Thanks.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help