[PATCH] D55800: [ELF] Place .note in the first page to ensure they are available in core files

Fāng-ruì Sòng via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 19 09:48:06 PST 2018


Can you give an example of writable SHT_NOTE section?
On Tue, Dec 18, 2018 at 11:01 PM Joerg Sonnenberger <joerg at bec.de> wrote:
>
> On Tue, Dec 18, 2018 at 01:34:47AM +0000, Fangrui Song via Phabricator via llvm-commits wrote:
> > This patch gives priority to alloctable SHT_NOTE sections so that they
> > are assuredly in the first page and will be available in core files.
> > They are small and contain useful information (e.g. .note.gnu.build-id
> > identifies the origin of the core).
>
> I don't think the change is correct as is. Any read-only SHT_NOTE
> sections should certainly be early, but note sections can also be
> writable. Putting a writable note early is quite undesirable.
>
> Joerg



-- 
宋方睿


More information about the llvm-commits mailing list