3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2025-03-04 07:00:49 +01:00
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
..
2021-04-30 20:07:19 -05:00
2020-07-09 09:58:21 -05:00
2021-03-12 13:49:23 -06:00
2021-09-28 10:51:33 -05:00
2021-09-23 11:52:56 -05:00
2021-09-23 11:52:56 -05:00
2020-08-13 13:43:31 -05:00
2021-07-28 10:03:27 -05:00
2021-04-20 09:37:48 -05:00
2021-02-08 15:56:30 -06:00
2021-11-08 15:12:25 -06:00
2021-10-08 12:31:36 -05:00
2021-09-28 17:26:05 -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
2017-11-28 13:20:33 -06:00
2021-09-28 10:51:25 -05:00
2021-05-07 08:45:20 -05:00
2021-09-20 10:32:51 -05: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
2021-08-04 23:08:34 -05:00
2021-09-17 17:59:52 -05:00
2019-07-15 14:06:26 -05:00
2021-09-21 15:21:39 -05:00
2020-09-16 14:31:07 -05:00
2021-10-06 15:59:15 -05:00
2020-04-10 06:31:19 -05:00
2020-09-14 11:39:25 -05:00
2021-08-25 13:05: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-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