dim 6a6fa96248 Pull in r321986 from upstream lld trunk (by James Henderson):
[ELF] Compress debug sections after assignAddresses and support
  custom layout

  Previously, in r320472, I moved the calculation of section offsets
  and sizes for compressed debug sections into maybeCompress, which
  happens before assignAddresses, so that the compression had the
  required information. However, I failed to take account of
  relocations that patch such sections. This had two effects:

  1. A race condition existed when a debug section referred to a
     different debug section (see PR35788).
  2. References to symbols in non-debug sections would be patched
     incorrectly.  This is because the addresses of such symbols are not
     calculated until after assignAddresses (this was a partial
     regression caused by r320472, but they could still have been
     broken before, in the event that a custom layout was used in a
     linker script).

  assignAddresses does not need to know about the output section size
  of non-allocatable sections, because they do not affect the value of
  Dot. This means that there is no longer a reason not to support
  custom layout of compressed debug sections, as far as I'm aware.
  These two points allow for delaying when maybeCompress can be called,
  removing the need for the loop I previously added to calculate the
  section size, and therefore the race condition. Furthermore, by
  delaying, we fix the issues of relocations getting incorrect symbol
  values, because they have now all been finalized.

This should fix thread race conditions when linking parts of ruby24.
2018-01-09 17:37:09 +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
2017-10-01 00:40:23 +00:00
2017-07-03 19:49:25 +00:00
2017-02-19 17:37:16 +00:00
2017-08-03 15:47:42 +00:00
2017-11-29 00:46:36 +00:00
2017-02-06 08:49:57 +00:00
2017-03-23 22:06:06 +00:00
2017-05-23 09:29:05 +00:00
2017-05-05 13:31:25 +00:00
2017-01-30 16:32:53 +00:00
2017-06-28 09:22:45 +00:00
2017-02-28 23:42:47 +00:00
2017-12-06 02:21:11 +00:00
2017-03-25 14:14:11 +00:00
2017-06-01 19:21:30 +00:00
2017-02-28 23:42:47 +00:00
2017-10-28 18:54:45 +00:00
2017-06-03 18:21:50 +00:00
2017-09-10 01:25:15 +00:00