[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240904123918.GCZthU9rOJLWUKBbsv@fat_crate.local>
Date: Wed, 4 Sep 2024 14:39:18 +0200
From: Borislav Petkov <bp@...en8.de>
To: Josh Poimboeuf <jpoimboe@...nel.org>
Cc: Peter Zijlstra <peterz@...radead.org>, live-patching@...r.kernel.org,
linux-kernel@...r.kernel.org, x86@...nel.org,
Miroslav Benes <mbenes@...e.cz>, Petr Mladek <pmladek@...e.com>,
Joe Lawrence <joe.lawrence@...hat.com>,
Jiri Kosina <jikos@...nel.org>,
Marcos Paulo de Souza <mpdesouza@...e.com>,
Song Liu <song@...nel.org>
Subject: Re: [RFC 28/31] x86/alternative: Create symbols for special section
entries
On Tue, Sep 03, 2024 at 09:28:29PM -0700, Josh Poimboeuf wrote:
> Take a more generic approach: for the "array of structs" style sections,
> annotate each struct entry with a symbol containing the entry. This
> makes it easy for tooling to parse the data and avoids the fragility of
> hardcoding section details.
This is more a question for my own understanding: so you want a generic
approach where objtool doesn't need to know each special section and what it
needs to copy there from but simply copy those new, special symbols over?
Which you use as markers of sorts: "this is a relevant symbol, pls copy it"...
I think you mean that but lemme confirm anyway.
Also, have you checked whether this can be done with some compiler switch
already?
Thx.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette
Powered by blists - more mailing lists