Fangrui Song
fa1c12453b
build: treewide: Set retain attribute
...
LLD 13 and GNU ld 2.37 support -z start-stop-gc which allows garbage
collection of C identifier name sections despite the __start_/__stop_
references. GNU ld before 2015-10 had the behavior as well. Simply set
the retain attribute so that GCC 11 (if configure-time binutils is 2.36
or newer)/Clang 13 will set the SHF_GNU_RETAIN section attribute to
prevent garbage collection.
Without the patch, there are linker errors with -z start-stop-gc
(LLD default) when -Wl,--gc-sections is used:
```
ld.lld: error: undefined symbol: __start___eap
>>> referenced by eap.c
>>> src/eap.o:(eap_init)
```
The remain attribute will not be needed if the metadata sections are
referenced by code directly.
2021-11-11 14:27:33 -06:00
..
2019-10-25 01:08:56 +02:00
2021-04-30 20:07:19 -05:00
2021-06-09 10:34:22 -05:00
2019-10-25 00:43:08 +02:00
2021-11-08 11:31:49 -06:00
2020-07-09 09:58:21 -05:00
2021-03-12 13:49:23 -06:00
2019-07-15 14:53:44 -05:00
2021-11-09 14:29:52 -06:00
2021-06-04 11:55:06 -05:00
2021-09-28 10:51:33 -05:00
2021-02-09 10:30:48 -06:00
2019-10-25 00:43:08 +02:00
2021-09-23 11:52:56 -05:00
2021-09-23 11:52:56 -05:00
2019-11-07 23:40:13 +01:00
2019-05-22 09:58:04 -05:00
2020-08-13 13:43:31 -05:00
2019-10-25 00:43:08 +02:00
2021-07-28 10:03:27 -05:00
2021-07-14 09:58:42 -05:00
2021-04-20 09:37:48 -05:00
2021-08-06 22:29:27 -05:00
2021-04-23 09:51:46 -05:00
2021-04-28 11:19:38 -05:00
2021-03-29 13:17:36 -05:00
2021-07-30 10:38:26 -05:00
2021-06-01 10:44:23 -05:00
2021-06-01 10:44:57 -05:00
2020-09-16 16:46:02 -05:00
2020-03-17 15:35:22 -05:00
2020-02-06 15:18:04 -06:00
2021-11-11 14:27:33 -06:00
2021-07-07 20:56:53 -05:00
2020-08-13 10:36:43 -05:00
2021-01-25 14:01:58 -06:00
2021-01-25 14:01:58 -06:00
2021-02-08 15:56:30 -06:00
2019-10-25 00:43:08 +02:00
2021-04-26 10:48:03 -05:00
2020-08-17 09:40:25 -05:00
2021-11-08 15:12:25 -06:00
2020-08-17 09:28:49 -05:00
2021-10-08 12:31:36 -05:00
2021-09-28 17:26:05 -05:00
2021-03-22 17:47:53 -05:00
2021-05-28 10:57:11 -05:00
2021-08-03 16:29:47 -05:00
2019-05-19 13:07:13 -05:00
2021-09-28 16:46:48 -05:00
2021-09-28 16:46:48 -05:00
2021-04-23 09:51:46 -05:00
2020-07-31 10:38:59 -05:00
2021-09-28 17:24:59 -05:00
2021-09-28 16:58:41 -05:00
2017-11-28 13:20:33 -06:00
2021-10-08 13:26:25 -05:00
2021-10-08 13:26:25 -05:00
2021-08-12 10:00:11 -05:00
2021-11-04 14:29:25 -05:00
2021-11-04 14:29:25 -05:00
2021-10-22 12:12:02 -05:00
2021-06-01 10:03:04 -05:00
2018-09-14 15:24:15 +02:00
2021-06-01 10:20:50 -05:00
2021-09-28 10:51:25 -05:00
2020-07-13 14:14:41 -05:00
2021-05-07 08:45:20 -05:00
2021-07-27 17:43:38 -05:00
2019-11-05 22:14:09 +01:00
2021-06-29 11:43:26 -05:00
2021-08-12 09:59:47 -05:00
2021-07-27 16:55:58 -05:00
2021-10-22 12:12:17 -05:00
2021-10-08 13:23:36 -05:00
2021-09-20 10:32:51 -05:00
2019-11-24 19:44:06 +01:00
2021-11-11 14:27:33 -06:00
2021-08-04 10:41:19 -05:00
2021-09-08 16:47:36 -05:00
2019-10-25 00:43:08 +02:00
2019-10-25 00:43:08 +02:00
2018-08-09 10:45:16 -05:00
2021-11-10 11:54:51 -06:00
2021-11-03 17:47:03 -05:00
2021-10-26 17:16:38 -05:00
2021-08-04 23:08:34 -05:00
2021-10-20 16:52:16 -05:00
2021-09-17 17:59:52 -05:00
2021-10-19 13:28:07 -05:00
2019-07-15 14:06:26 -05:00
2021-10-08 08:48:58 -05:00
2021-09-21 15:21:39 -05:00
2020-09-16 14:31:07 -05:00
2021-09-03 14:34:30 -05:00
2021-09-03 14:34:30 -05:00
2021-10-06 15:59:15 -05:00
2020-04-10 06:31:19 -05:00
2021-06-04 11:53:31 -05:00
2020-09-14 11:39:25 -05:00
2019-01-23 18:22:11 +01:00
2021-10-22 12:12:02 -05:00
2021-02-11 15:06:01 -06:00
2019-11-07 23:40:13 +01:00
2019-10-25 00:43:08 +02:00
2021-10-20 11:49:13 -05:00
2021-09-08 16:46:07 -05:00
2021-08-25 13:05:05 -05:00
2021-11-08 13:49:50 -06:00
2021-11-04 14:29:46 -05:00
2020-11-16 17:04:30 -06:00
2019-10-25 00:43:08 +02:00
2020-08-13 10:36:43 -05:00
2019-10-25 00:43:08 +02:00
2021-11-08 13:51:34 -06:00
2021-09-15 15:49:05 -05:00
2021-08-12 09:59:17 -05:00
2021-08-12 09:59:17 -05:00
2021-11-03 17:44:00 -05:00
2021-11-03 17:44:00 -05:00
2021-03-12 13:49:23 -06:00
2021-09-27 19:32:41 -05:00
2021-03-09 15:28:36 -06:00
2020-05-01 11:38:57 -05:00
2021-10-19 17:04:39 -05:00
2021-10-19 17:04:39 -05:00
2021-09-03 14:30:44 -05:00
2020-01-17 12:50:23 -06:00
2021-06-04 11:53:25 -05:00
2021-04-26 10:48:03 -05:00