Re: [RFC 28/31] x86/alternative: Create symbols for special section entries

Borislav Petkov
2024-09-04T12:39:41Z

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.