Bug 28772

Summary: Provide /PASSTHRU/ section rule similar to /DISCARD/
Product: binutils Reporter: Kees Cook <kees>
Component: binutilsAssignee: Not yet assigned to anyone <unassigned>
Status: UNCONFIRMED ---    
Severity: enhancement CC: i, ndesaulniers, nickc
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:

Description Kees Cook 2022-01-12 20:30:21 UTC
When building the Function-Granular Kernel Address Space Layout Randomization (FGKASLR), there needs to be a way to specify wildcards for input section names that should be passed through with their existing name (not collected into a new section, and not discarded).

Right now, it's only possible to accomplish this be either naming each of these sections in the linker script (and with 64,000 sections, the linker becomes hugely slow, and complicates the kernel build), or by disabling orphan section warnings.

For example:

    /PASSTHRU/ : {

Here is one place where this need was discussed:
Comment 1 Nick Clifton 2023-09-04 12:16:11 UTC
Here is one reply to the request: