Rafael Espindola a0d7df3988 Put the header in the first PT_LOAD even if that PT_LOAD has a LMAExpr.
This should fix PR36017.

The root problem is that we were creating a PT_LOAD just for the
header. That was technically valid, but inconvenient: we should not be
making the ELF discontinuous.

The solution is to allow a section with LMAExpr to be added to a
PT_LOAD if that PT_LOAD doesn't already have a LMAExpr.

llvm-svn: 323625
2018-01-29 03:44:44 +00:00
..
2017-11-30 22:29:14 +00:00
2017-03-17 13:19:15 +00:00
2016-09-02 20:40:53 +00:00
2017-12-12 20:00:30 +00:00
2018-01-25 17:42:03 +00:00
2016-10-31 21:36:23 +00:00
2016-09-02 20:40:53 +00:00
2016-07-29 19:24:27 +00:00
2017-07-18 22:14:26 +00:00
2017-04-13 23:40:00 +00:00
2017-09-28 18:12:13 +00:00
2016-09-02 20:40:53 +00:00
2017-12-12 20:00:30 +00:00
2016-09-22 12:35:44 +00:00
2017-04-12 22:38:02 +00:00
2017-09-19 17:29:58 +00:00
2016-09-02 20:40:53 +00:00
2016-12-07 20:10:43 +00:00
2017-04-12 22:38:02 +00:00
2017-12-12 20:00:30 +00:00
2017-11-30 22:29:14 +00:00
2017-05-01 20:32:39 +00:00
2016-09-02 20:40:53 +00:00
2017-12-12 20:00:30 +00:00
2016-09-02 20:40:53 +00:00
2016-09-02 20:40:53 +00:00
2016-09-30 00:16:11 +00:00