Thread (22 messages) 22 messages, 4 authors, 2022-06-24

Re: [RFC PATCH v2 3/7] objtool: Use target file class size instead of a compiled constant

From: Peter Zijlstra <peterz@infradead.org>
Date: 2022-05-24 18:00:38
Also in: lkml

On Tue, May 24, 2022 at 03:17:43PM +0200, Christophe Leroy wrote:
-	sec = elf_create_section(elf, relocname, 0, sizeof(GElf_Rela), 0);
+	if (size == sizeof(u32))
+		sec = elf_create_section(elf, relocname, 0, sizeof(Elf32_Rela), 0);
+	else
+		sec = elf_create_section(elf, relocname, 0, sizeof(GElf_Rela), 0);
Probably best to use Elf64_* here instead of GElf_*.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help