Fangrui Song
fbf2f66400
[ELF] Update flag propagation rule to ignore discarded output sections
...
See the updated insert-before.test for the effects: many synthetic
sections are SHF_ALLOC|SHF_WRITE. If they are discarded, we don't want
to propagate their flags to subsequent output section descriptions.
`getFirstInputSection(sec) == nullptr` can technically be merged into
`isDiscardable` but I'd like to postpone that as not sharing code may give more
refactoring opportunity.
Depends on D118529.
Reviewed By: peter.smith, bluca
Differential Revision: https://reviews.llvm.org/D118530
2022-02-01 10:19:30 -08:00
..
2022-01-20 14:53:26 -05:00
2022-01-20 14:53:26 -05:00
2020-09-16 10:26:11 +01:00
2022-01-20 14:53:26 -05:00
2020-09-16 10:26:11 +01:00
2021-12-24 12:09:48 -08:00
2019-01-19 08:50:56 +00:00
2022-01-25 10:29:04 -08:00
2022-01-29 19:31:09 -08:00
2022-02-01 09:47:56 -08:00
2022-02-01 09:47:56 -08:00
2022-01-20 14:53:26 -05:00
2021-12-24 17:10:38 -08:00
2020-08-13 09:11:01 -07:00
2022-01-18 17:03:23 -08:00
2022-01-18 17:03:23 -08:00
2022-02-01 00:14:21 -08:00
2019-01-19 08:50:56 +00:00
2022-02-01 09:53:29 -08:00
2022-01-29 20:11:59 -08:00
2022-02-01 09:53:29 -08:00
2022-01-30 17:15:45 -08:00
2022-02-01 10:19:30 -08:00
2022-02-01 10:16:12 -08:00
2022-01-31 16:46:11 -08:00
2019-07-10 05:00:37 +00:00
2022-01-26 23:10:40 -08:00
2021-11-29 14:14:53 -08:00
2022-01-30 15:12:09 -08:00
2019-01-19 08:50:56 +00:00
2022-01-06 01:02:14 -08:00
2022-01-30 01:18:41 -08:00
2022-01-26 10:23:56 -08:00
2022-01-24 09:03:21 -08:00
2022-01-24 14:13:21 +01:00
2021-06-22 15:35:24 -07:00
2021-06-22 15:35:24 -07:00
2022-01-20 14:53:26 -05:00
2020-06-17 17:12:10 -07:00
2022-01-15 23:58:15 -08:00
2022-01-19 20:09:41 -08:00
2022-01-05 03:25:41 +00:00
2022-01-16 21:19:01 -08:00
2022-02-01 10:10:22 -08:00
2022-02-01 00:14:21 -08:00
2022-01-29 23:05:54 -08:00
2022-02-01 09:47:56 -08:00
2022-01-20 14:53:26 -05:00
2021-06-03 18:55:18 +02:00
2022-02-01 10:16:12 -08:00
2021-11-20 22:18:09 -08:00