Björn Svensson
55d6c6ff58
[clang][driver] Correcting arguments when using libFuzzer with -shared-libsan ( #164842 )
...
This PR contains two commits:
- Add required dependencies when using `-shared-libsan` and fuzzer.
Since libFuzzer is a static library we need to make sure that we add its
dependencies when building with `-shared-libsan`. E.g libFuzzer uses
`ceilf()` from `libm.so` when building on Gnu toolchain.
Previously, the resulting command did not contain the required link
libraries, giving build failures
(only a static sanitizer runtime would trigger the call to
`linkSanitizerRuntimeDeps`).
- Correcting dependency order when using fuzzer.
When building using `-shared-libsan` the sanitizer library needs to be
first in link order.
Since the fuzzer requires `-lstdc++` we have to make sure that the
sanitizer library is added before `-lstdc++`.
---------
Signed-off-by: Björn Svensson <bjorn.a.svensson@est.tech>
2026-02-09 16:13:17 -08:00
..
2025-10-23 16:34:28 +01:00
2025-11-06 08:07:10 -08:00
2026-02-05 09:52:04 -06:00
2026-01-29 10:08:26 +00:00
2025-10-07 14:44:20 -07:00
2025-09-22 01:41:00 -04:00
2025-12-09 09:25:59 +00:00
2025-08-11 11:39:16 -07:00
2026-01-29 10:08:26 +00:00
2026-01-12 09:52:23 +01:00
2025-10-28 13:04:01 -06:00
2025-10-29 10:54:55 +00:00
2025-09-11 17:51:47 -07:00
2025-08-11 21:44:05 +05:30
2025-10-24 00:13:53 +01:00
2025-10-24 00:13:53 +01:00
2025-11-14 10:24:26 +00:00
2025-09-15 11:46:56 -04:00
2025-09-11 17:51:47 -07:00
2026-02-06 14:38:50 +01:00
2026-02-06 14:38:50 +01:00
2025-11-18 09:55:36 +01:00
2025-09-11 17:51:47 -07:00
2026-01-05 22:05:48 +00:00
2025-08-19 17:31:14 -07:00
2025-07-29 14:43:11 +01:00
2025-10-21 11:08:30 -07:00
2025-10-23 23:12:58 +01:00
2025-10-27 08:55:28 +00:00
2025-09-11 17:51:47 -07:00
2025-08-11 21:44:05 +05:30
2025-12-02 19:02:25 -05:00
2025-10-26 11:05:24 -07:00
2025-09-11 17:51:47 -07:00
2025-09-11 17:51:47 -07:00
2025-09-11 17:51:47 -07:00
2025-12-19 12:56:40 +00:00
2025-10-11 13:59:18 -07:00
2025-08-02 20:08:53 +00:00
2026-01-27 17:21:20 +01:00
2025-08-02 20:08:53 +00:00
2026-02-02 18:01:44 +08:00
2026-01-05 14:42:03 -08:00
2026-01-23 23:04:25 -08:00
2025-08-08 08:53:01 -04:00
2025-08-08 08:53:01 -04:00
2025-08-02 20:08:53 +00:00
2026-02-04 12:56:14 -08:00
2025-07-31 10:39:06 -07:00
2025-10-25 21:08:45 -07:00
2025-10-25 21:08:45 -07:00
2025-10-25 21:08:45 -07:00
2025-09-04 11:17:53 -07:00
2026-01-12 18:18:28 +00:00
2025-08-01 07:31:20 -07:00
2026-01-16 09:32:47 -08:00
2025-08-01 13:14:14 -07:00
2025-09-17 13:02:02 -07:00
2025-08-11 07:22:11 -05:00
2025-08-08 13:29:00 -07:00
2025-08-01 13:14:14 -07:00
2025-10-07 10:52:45 -05:00
2026-01-27 21:39:12 -08:00
2026-01-26 20:14:22 -08:00
2026-02-04 12:15:25 -08:00
2025-12-05 16:45:41 -05:00
2026-01-23 23:04:25 -08:00
2025-09-11 17:51:47 -07:00
2025-09-11 17:51:47 -07:00
2026-02-09 12:32:13 +00:00
2026-01-23 23:04:25 -08:00
2026-01-23 23:04:25 -08:00
2026-01-23 23:04:25 -08:00
2026-01-23 23:04:25 -08:00
2026-02-04 12:15:25 -08:00
2025-10-07 13:32:43 -07:00
2025-10-07 13:32:43 -07:00
2026-01-23 23:04:25 -08:00
2026-01-23 23:04:25 -08:00
2026-01-23 23:04:25 -08:00
2026-01-23 23:04:25 -08:00
2026-01-29 14:00:21 -08:00
2026-01-23 23:04:25 -08:00
2025-11-26 12:29:54 +00:00
2026-01-05 23:42:32 +00:00
2025-08-02 20:08:53 +00:00
2025-10-31 09:49:32 -07:00
2025-10-31 11:15:19 -07:00
2025-10-03 13:45:12 -04:00
2025-08-21 14:43:29 +00:00
2025-08-25 16:09:34 -07:00
2025-10-03 13:45:12 -04:00
2025-08-26 09:56:21 -07:00
2025-10-07 17:05:12 -04:00
2025-12-05 16:45:41 -05:00
2025-10-30 09:34:14 -04:00
2026-01-06 13:09:20 +02:00
2025-10-06 10:41:46 -07:00
2026-02-04 12:15:25 -08:00
2025-12-09 18:30:25 -05:00
2025-09-11 10:26:51 +09:00
2026-01-07 09:13:12 -08:00
2025-09-09 16:43:18 -04:00
2025-11-11 17:25:49 +00:00
2025-09-09 18:39:26 +00:00
2025-11-18 21:05:43 +01:00
2025-12-05 11:32:50 +01:00
2025-12-05 11:32:50 +01:00
2025-12-05 11:32:50 +01:00
2025-11-22 12:08:15 +01:00
2025-08-27 13:07:15 -07:00
2025-07-25 13:24:00 -04:00
2025-12-05 11:32:50 +01:00
2025-12-05 11:32:50 +01:00
2025-12-05 11:32:50 +01:00
2025-12-05 11:32:50 +01:00
2025-12-05 11:32:50 +01:00
2025-12-05 11:32:50 +01:00
2025-12-05 11:32:50 +01:00
2025-12-05 11:32:50 +01:00
2025-12-05 11:32:50 +01:00
2025-12-05 11:32:50 +01:00
2025-12-05 11:32:50 +01:00
2025-12-05 11:32:50 +01:00
2025-12-05 11:32:50 +01:00
2025-10-06 10:41:46 -07:00
2025-11-11 17:25:49 +00:00
2025-10-08 10:19:01 -07:00
2026-02-09 16:13:17 -08:00
2025-08-22 07:39:11 +02:00
2025-10-15 09:41:58 -05:00
2025-10-24 11:10:37 -05:00
2025-11-15 08:44:32 -05:00
2025-07-30 06:31:59 -05:00
2026-01-05 22:05:48 +00:00
2025-07-21 18:36:39 -05:00
2025-07-21 18:36:39 -05:00
2025-10-30 13:42:32 +01:00
2025-08-01 07:26:02 -05:00
2025-08-01 07:26:02 -05:00
2025-10-03 17:38:37 -04:00
2025-11-15 08:44:32 -05:00
2026-02-04 16:19:00 -06:00
2026-01-30 09:55:50 -06:00
2026-01-30 09:55:50 -06:00
2025-11-18 09:55:36 +01:00
2025-11-26 12:43:44 +00:00
2025-11-26 21:29:50 +00:00
2025-11-26 12:43:44 +00:00
2025-11-15 08:44:32 -05:00
2025-11-13 03:00:27 +00:00
2026-02-04 16:19:00 -06:00
2026-02-04 16:19:00 -06:00
2026-02-04 16:19:00 -06:00
2026-02-05 09:52:04 -06:00
2026-02-05 09:52:04 -06:00
2026-02-05 09:52:04 -06:00
2026-02-05 09:52:04 -06:00
2026-02-05 09:52:04 -06:00
2026-02-05 09:52:04 -06:00
2026-01-23 12:36:52 -06:00
2025-12-11 21:03:46 -05:00
2026-01-29 14:00:21 -08:00
2025-07-21 18:36:39 -05:00
2025-08-20 09:05:23 +02:00
2025-08-08 13:29:00 -07:00
2025-11-18 09:48:04 -06:00
2025-11-19 20:22:22 -05:00
2026-02-05 07:46:57 -08:00
2025-10-17 17:01:36 -05:00
2026-01-30 08:04:13 -06:00
2026-01-30 08:04:13 -06:00
2026-01-05 22:43:42 +00:00
2025-09-05 14:14:21 +08:00
2026-01-17 16:27:54 +08:00
2026-01-17 16:27:54 +08:00
2026-01-13 20:05:48 +08:00
2025-07-30 10:25:37 -04:00
2025-11-04 08:17:50 -05:00
2025-07-30 01:09:27 -04:00
2025-09-11 17:51:47 -07:00
2026-01-08 10:55:00 +00:00
2026-01-08 10:55:00 +00:00
2026-01-23 23:04:25 -08:00
2025-09-29 14:45:51 +02:00
2025-09-20 15:48:21 +08:00
2025-07-25 13:17:09 -07:00
2026-01-30 14:24:43 +05:30
2025-12-12 19:22:40 +02:00
2025-09-11 17:51:47 -07:00
2025-11-04 17:45:55 +00:00
2025-12-01 17:45:10 +00:00
2025-09-11 17:51:47 -07:00
2025-09-27 20:38:26 -07:00
2025-10-07 10:52:45 -05:00
2025-07-23 15:46:49 -05:00
2025-07-22 18:18:12 -04:00
2026-01-26 15:18:09 -06:00
2026-01-16 08:24:47 -06:00
2025-10-07 10:52:45 -05:00
2025-10-07 10:52:45 -05:00
2025-09-11 17:51:47 -07:00
2026-02-06 16:36:20 +00:00
2025-07-30 10:25:37 -04:00
2025-09-11 17:51:47 -07:00
2025-07-22 10:57:44 +01:00
2025-12-10 15:00:37 +01:00
2025-11-14 12:11:55 +00:00
2026-02-09 14:18:39 +08:00
2025-09-19 16:36:37 -07:00
2025-11-12 17:52:30 +00:00
2026-01-12 14:31:37 +00:00
2025-11-12 17:52:30 +00:00
2025-09-11 10:26:51 +09:00
2025-09-11 10:26:51 +09:00
2026-02-06 11:32:17 -05:00
2025-09-11 17:51:47 -07:00
2025-08-11 21:44:05 +05:30
2025-09-11 17:51:47 -07:00
2025-08-11 21:44:05 +05:30
2026-01-22 17:30:38 +08:00
2026-02-05 10:53:54 +01:00
2026-01-27 21:31:51 +00:00
2025-09-11 08:49:06 +02:00
2025-11-26 19:31:42 +03:00
2026-01-06 10:44:20 -05:00
2026-01-23 12:36:52 -06:00
2026-01-05 22:05:48 +00:00
2026-02-06 17:12:53 -08:00
2026-02-09 16:13:17 -08:00
2026-01-08 14:31:17 -08:00
2025-09-11 17:51:47 -07:00
2025-07-23 17:03:34 +02:00
2026-01-05 13:57:01 +00:00
2026-01-06 15:10:41 +00:00
2026-01-06 15:10:41 +00:00
2025-10-07 10:52:45 -05:00
2025-08-08 13:29:00 -07:00
2026-01-29 22:04:04 +00:00
2025-10-07 10:52:45 -05:00
2026-01-20 09:27:40 -08:00
2025-09-11 17:51:47 -07:00
2025-10-08 10:19:01 -07:00
2026-02-04 12:15:25 -08:00
2025-09-11 17:51:47 -07:00
2025-07-30 13:04:02 -07:00
2025-10-10 14:54:25 -07:00
2025-10-10 14:54:25 -07:00
2026-02-07 09:38:10 +05:30
2026-02-02 18:01:44 +08:00
2026-01-29 14:00:21 -08:00