bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/28772] New: Provide /PASSTHRU/ section rule similar to /DI


From: kees at outflux dot net
Subject: [Bug binutils/28772] New: Provide /PASSTHRU/ section rule similar to /DISCARD/
Date: Wed, 12 Jan 2022 20:30:21 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=28772

            Bug ID: 28772
           Summary: Provide /PASSTHRU/ section rule similar to /DISCARD/
           Product: binutils
           Version: unspecified
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: kees at outflux dot net
  Target Milestone: ---

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/ : {
        *(.text.*)
    }

Here is one place where this need was discussed:
https://lore.kernel.org/linux-hardening/202109011815.1C439A6DA9@keescook/

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]