Ed Maste 2b8c81f1b9 lld: Improve LMARegion handling.
This fixes the crash reported at [LLVM] PR36083.

The issue is that we were trying to put all the sections in the same
PT_LOAD and crashing trying to write past the end of the file.

This also adds accounting for used space in LMARegion, without it all
3 PT_LOADs would have the same physical address.

Obtained from:	LLVM r323449 by Rafael Espindola
2018-01-29 13:52:42 +00:00
..
2017-11-02 20:08:00 +00:00
2017-05-31 19:37:23 +00:00
2017-09-17 19:14:38 +00:00
2017-12-10 09:17:21 +00:00
2017-12-12 17:34:35 +00:00
2018-01-24 14:24:17 +00:00
2017-07-03 19:49:25 +00:00
2017-08-03 15:47:42 +00:00
2018-01-29 13:52:42 +00:00
2017-05-23 09:29:05 +00:00
2018-01-28 03:16:54 +00:00
2017-06-28 09:22:45 +00:00
2017-12-06 02:21:11 +00:00
2017-06-01 19:21:30 +00:00
2018-01-24 06:48:42 +00:00
2017-06-03 02:42:49 +00:00
2017-09-10 01:25:15 +00:00