[ELF] Define __ehdr_start symbol
authorPetr Hosek <phosek@chromium.org>
Mon, 22 Aug 2016 18:44:04 +0000 (18:44 +0000)
committerPetr Hosek <phosek@chromium.org>
Mon, 22 Aug 2016 18:44:04 +0000 (18:44 +0000)
commit4f7a5c3bb429c945ff4e456478b5532f828d1143
treef95746072df02e91d7273254cf2b853042242db1
parent9cf5e4fc00fa7bcef4fdf26a24c47129b7610bc7
[ELF] Define __ehdr_start symbol

This symbol can be used by the program to examine its own headers.

Differential Revision: https://reviews.llvm.org/D23750

llvm-svn: 279452
lld/ELF/Symbols.h
lld/ELF/Writer.cpp
lld/test/ELF/ehdr_start.s [new file with mode: 0644]
lld/test/ELF/linkerscript/linkerscript-ehdr_start.s [new file with mode: 0644]