George Rimar
d30a78b3fe
[ELF] - Eliminate the AssertCommand.
...
Currently, LLD supports ASSERT as a separate command.
We support two forms now.
Assign expression-form: . = ASSERT(0x100)
(old GNU ld required it and some scripts in the wild are still using
something like . = ASSERT((_end - _text <= (512 * 1024 * 1024)), "kernel image bigger than KERNEL_IMAGE_SIZE");
Nowadays above is not a mandatory form and command-like form is commonly used:
ASSERT(<expr>, "text);
The return value of the ASSERT is Dot. That was implemented in D30171.
It looks like (2) is just a short version of (1) then.
GNU ld does *not* list ASSERT as a SECTIONS command:
https://sourceware.org/binutils/docs/ld/SECTIONS.html#SECTIONS
Given above we probably can change ASSERT to be an assignment to Dot.
That makes the rest of the code much simpler. Patch do that.
Differential revision: https://reviews.llvm.org/D45434
llvm-svn: 330814
2018-04-25 11:16:31 +00:00
..
2018-04-05 10:51:06 +00:00
2017-09-20 19:24:57 +00:00
2018-02-28 20:22:42 +00:00
2018-03-01 01:19:12 +00:00
2018-03-01 01:19:12 +00:00
2018-02-23 10:15:54 +00:00
2018-03-01 01:19:12 +00:00
2018-03-01 01:19:12 +00:00
2018-03-01 01:19:12 +00:00
2018-03-01 01:19:12 +00:00
2018-03-01 01:19:12 +00:00
2018-02-28 20:22:42 +00:00
2018-03-01 01:19:12 +00:00
2018-03-01 01:19:12 +00:00
2018-03-01 01:19:12 +00:00
2018-03-01 01:19:12 +00:00
2018-03-01 01:19:12 +00:00
2017-12-20 08:56:10 +00:00
2018-03-01 01:19:12 +00:00
2018-04-25 11:16:31 +00:00
2018-03-01 01:19:12 +00:00
2018-03-01 01:19:12 +00:00
2018-02-15 06:13:52 +00:00
2018-03-01 01:19:12 +00:00
2017-08-23 18:44:34 +00:00
2018-01-12 23:26:25 +00:00
2017-08-23 18:44:34 +00:00
2018-03-01 12:36:01 +00:00
2018-03-13 16:02:45 +00:00
2017-09-08 16:22:43 +00:00
2018-03-13 16:02:45 +00:00
2017-09-08 16:22:43 +00:00
2018-01-08 10:17:03 +00:00
2017-09-11 23:34:12 +00:00
2018-03-13 16:02:45 +00:00
2017-11-30 17:51:10 +00:00
2017-11-30 17:51:10 +00:00
2018-03-01 04:21:42 +00:00
2018-03-01 04:21:42 +00:00
2017-06-28 01:46:31 +00:00
2018-03-01 04:21:42 +00:00
2018-03-01 04:21:42 +00:00
2018-01-17 10:24:49 +00:00
2018-03-01 04:21:42 +00:00
2018-03-01 04:21:42 +00:00
2018-03-01 04:21:42 +00:00
2018-03-01 04:21:42 +00:00
2018-03-01 04:21:42 +00:00
2018-03-01 04:21:42 +00:00
2018-03-07 11:47:15 +00:00
2018-02-28 20:22:42 +00:00
2018-02-17 00:09:49 +00:00
2018-03-24 13:10:19 +00:00
2017-04-04 22:35:16 +00:00
2018-03-01 04:21:42 +00:00
2018-03-13 16:02:45 +00:00
2017-09-20 18:56:08 +00:00
2017-03-30 19:13:47 +00:00
2018-03-23 09:18:31 +00:00
2018-03-01 04:21:42 +00:00
2018-03-01 10:38:51 +00:00
2018-03-01 04:21:42 +00:00
2017-05-10 16:20:33 +00:00
2018-03-01 04:21:42 +00:00
2017-10-06 09:37:44 +00:00
2017-12-01 09:04:52 +00:00
2018-03-13 08:50:36 +00:00
2018-03-01 04:21:42 +00:00
2018-04-09 13:01:50 +00:00
2018-03-01 12:27:04 +00:00
2018-02-26 22:32:15 +00:00
2018-03-13 16:02:45 +00:00
2017-04-07 10:36:42 +00:00
2018-03-13 16:02:45 +00:00
2018-03-13 16:23:48 +00:00
2018-03-01 04:21:42 +00:00
2018-03-01 04:21:42 +00:00
2018-03-01 04:21:42 +00:00
2018-03-01 04:21:42 +00:00
2018-03-01 04:21:42 +00:00
2017-04-07 10:36:42 +00:00
2018-03-01 04:21:42 +00:00
2017-07-14 08:10:45 +00:00
2018-03-13 16:02:45 +00:00
2018-03-01 15:25:46 +00:00
2018-03-13 16:02:45 +00:00
2018-03-13 16:11:02 +00:00
2018-04-03 12:39:28 +00:00
2018-01-30 18:05:56 +00:00
2018-03-13 16:02:45 +00:00
2017-09-11 15:55:54 +00:00
2018-02-16 10:42:58 +00:00
2018-03-13 09:18:11 +00:00
2018-03-13 09:18:11 +00:00
2018-03-13 09:18:11 +00:00
2018-03-13 16:02:45 +00:00
2017-11-20 15:43:20 +00:00
2018-01-19 14:15:13 +00:00
2018-03-07 12:44:18 +00:00
2017-07-12 14:50:25 +00:00
2018-03-13 16:23:48 +00:00
2018-04-05 17:20:18 +00:00
2018-04-05 17:20:18 +00:00
2017-07-25 08:29:29 +00:00
2017-12-12 20:00:30 +00:00
2018-03-13 16:02:45 +00:00
2018-03-02 08:11:58 +00:00
2017-08-17 08:47:21 +00:00
2018-03-05 10:54:03 +00:00
2018-03-26 08:58:16 +00:00
2017-07-26 21:51:09 +00:00
2018-01-29 03:44:44 +00:00
2017-12-11 23:25:27 +00:00
2018-03-13 16:02:45 +00:00
2017-10-06 09:37:44 +00:00
2018-01-02 16:46:30 +00:00
2018-04-05 13:23:59 +00:00
2018-03-13 16:02:45 +00:00
2017-07-03 10:11:25 +00:00
2017-10-06 09:37:44 +00:00
2017-04-12 22:38:02 +00:00
2017-03-17 13:05:04 +00:00
2018-03-13 16:02:45 +00:00
2018-03-13 16:02:45 +00:00
2018-03-28 11:33:00 +00:00
2017-10-23 00:51:08 +00:00
2017-09-19 17:29:58 +00:00
2018-03-13 16:02:45 +00:00
2018-02-23 10:53:04 +00:00
2017-10-25 15:20:30 +00:00
2017-10-06 09:37:44 +00:00
2018-04-03 12:39:28 +00:00
2018-03-13 16:02:45 +00:00
2017-04-12 22:38:02 +00:00
2018-03-14 07:44:23 +00:00
2018-03-13 16:02:45 +00:00
2017-04-12 22:38:02 +00:00
2018-03-13 16:02:45 +00:00
2017-08-23 18:44:34 +00:00
2017-12-12 20:00:30 +00:00
2018-02-27 07:18:07 +00:00
2017-11-30 22:29:14 +00:00
2017-09-08 08:23:15 +00:00
2017-10-06 09:37:44 +00:00
2018-03-13 16:02:45 +00:00
2018-04-09 13:13:36 +00:00
2017-05-01 20:32:39 +00:00
2017-05-26 17:23:25 +00:00
2018-04-03 12:39:28 +00:00
2017-04-07 10:36:42 +00:00
2017-10-06 09:37:44 +00:00
2018-03-13 08:47:17 +00:00
2017-06-16 23:45:35 +00:00
2017-08-23 18:44:34 +00:00
2017-06-19 15:28:58 +00:00
2017-10-06 09:37:44 +00:00
2018-03-13 16:02:45 +00:00
2017-10-06 09:37:44 +00:00
2018-03-13 16:02:45 +00:00
2017-12-12 20:00:30 +00:00
2017-10-12 08:40:12 +00:00
2017-05-09 18:24:38 +00:00
2018-03-13 16:02:45 +00:00
2018-03-13 16:02:45 +00:00
2018-04-10 09:44:44 +00:00
2018-02-01 19:30:15 +00:00
2017-09-01 02:23:31 +00:00
2018-03-13 16:02:45 +00:00
2017-09-08 09:31:01 +00:00
2018-03-24 13:10:19 +00:00
2018-03-01 01:19:12 +00:00
2018-03-01 01:19:12 +00:00
2018-03-01 01:19:12 +00:00
2018-03-01 01:19:12 +00:00
2017-11-20 15:37:19 +00:00
2017-06-20 01:51:50 +00:00
2018-03-13 16:02:45 +00:00
2018-02-07 09:11:07 +00:00
2017-12-11 17:23:28 +00:00
2018-02-28 05:55:56 +00:00