Ed Maste dfd4db9333 lld: Set DF_1_PIE for -pie
DF_1_PIE originated from Solaris[1].

GNU ld[2] sets the flag on non-Solaris platforms.

It can help distinguish PIE from ET_DYN.
eu-classify from elfutils uses this to recognize PIE[3].

glibc uses this flag to reject dlopen'ing a PIE[4]

[1] https://docs.oracle.com/cd/E36784_01/html/E36857/chapter6-42444.html
[2] https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=5fe2850dd96483f176858fd75c098313d5b20bc2
[3] https://sourceware.org/git/?p=elfutils.git;a=commit;h=3f489b5c7c78df6d52f8982f79c36e9a220e8951
[4] https://sourceware.org/bugzilla/show_bug.cgi?id=24323

Discussed with:	dim
Obtained from:	LLVM ee9a251caf1d
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
2020-06-02 22:57:13 +00:00
..
2020-05-20 22:25:46 +00:00
2019-08-11 06:26:03 +00:00
2020-02-11 07:02:48 +00:00
2019-11-01 11:28:43 +00:00
2020-05-04 17:16:30 +00:00
2020-03-29 02:40:03 +00:00
2019-06-29 18:41:40 +00:00
2020-05-20 20:58:48 +00:00
2019-12-21 21:05:53 +00:00
2020-01-25 21:16:45 +00:00
2020-06-02 22:57:13 +00:00
2020-02-19 17:09:08 +00:00
2020-04-06 23:11:43 +00:00
2019-12-09 17:58:22 +00:00
2019-05-08 11:04:09 +00:00
2020-04-19 02:20:39 +00:00
2019-11-20 23:56:20 +00:00
2020-04-23 14:08:40 +00:00
2019-12-21 21:02:50 +00:00
2020-04-24 05:05:58 +00:00
2020-05-21 21:00:46 +00:00
2020-03-22 01:27:38 +00:00