[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200224214845.GC409112@rani.riverdale.lan>
Date: Mon, 24 Feb 2020 16:48:45 -0500
From: Arvind Sankar <nivedita@...m.mit.edu>
To: Fangrui Song <maskray@...gle.com>
Cc: Nick Desaulniers <ndesaulniers@...gle.com>,
Michael Matz <matz@...e.de>,
Arvind Sankar <nivedita@...m.mit.edu>,
Borislav Petkov <bp@...en8.de>,
Nathan Chancellor <natechancellor@...il.com>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>,
"H. Peter Anvin" <hpa@...or.com>,
"maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" <x86@...nel.org>,
LKML <linux-kernel@...r.kernel.org>,
clang-built-linux <clang-built-linux@...glegroups.com>,
Kees Cook <keescook@...omium.org>
Subject: Re: [PATCH 2/2] x86/boot/compressed: Remove unnecessary sections
from bzImage
On Mon, Feb 24, 2020 at 01:28:28PM -0800, Fangrui Song wrote:
> Hi Michael, please see my other reply on this thread: https://lkml.org/lkml/2020/2/24/47
>
> Synthesized sections can be matched as well. For example, SECTIONS { .pltfoo : { *(.plt) }} can rename the output section .plt to .pltfoo
> It seems that in GNU ld, the synthesized section is associated with the
> original object file, so it can be written as:
>
> SECTIONS { .pltfoo : { a.o(.plt) }}
>
> In lld, you need a wildcard to match the synthesized section *(.plt)
>
> .rela.dyn is another example.
>
With the BFD toolchain, file matching doesn't actually seem to work at
least for .rela.dyn. I've tried playing around with it in the past and
if you try to use file-matching to capture relocations from a particular
input file, it just doesn't work sensibly.
Powered by blists - more mailing lists