[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
Wed Dec 19 13:17:38 PST 2018


On Wed, Dec 19, 2018 at 12:16:30PM -0800, Fāng-ruì Sòng via llvm-commits wrote:
> % ld.bfd n.o -o n; readelf -WS n
> ld.bfd: warning: cannot find entry symbol _start; defaulting to 00000000004000b8
> There are 7 section headers, starting at offset 0x200200:

The interesting flag is -l, i.e. the segment header created. It should
be noted that at least some versions of GNU ld will do stupid things
like creating a RWE segment in this case, which is very clearly wrong.

Joerg


More information about the llvm-commits mailing list