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

Joerg Sonnenberger via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 18 23:00:25 PST 2018


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