Dimitry Andric
867a1d621d
[sanitizer_common] mark __elf_aux_vector as weak on FreeBSD ( #118110 )
...
At some point FreeBSD introduced libsys as a wrapper between syscalls
and libc, and then linking sanitized programs started failing with:
```text
# c++ -fsanitize=address main.cc
ld: error: undefined symbol: __elf_aux_vector
>>> referenced by sanitizer_linux_libcdep.cpp:950 (/usr/src/contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp:950)
>>> sanitizer_linux_libcdep.o:(__sanitizer::ReExec()) in archive /usr/lib/clang/17/lib/freebsd/libclang_rt.asan-x86_64.a
c++: error: linker command failed with exit code 1 (use -v to see invocation)
```
Mark `__elf_aux_vector` as weak in the internal sanitizer declaration,
so the linker will accept it at link time. The dynamic linker will then
take care of the symbol at run time.
2024-12-03 00:31:19 +01:00
..
2024-07-10 19:39:47 -07:00
2024-11-26 14:22:14 -08:00
2024-10-11 16:58:42 -07:00
2024-07-01 18:59:24 -07:00
2024-09-15 17:14:08 -07:00
2024-07-12 13:41:01 +02:00
2024-07-15 16:12:42 -07:00
2024-11-14 12:18:11 -08:00
2024-10-24 14:09:05 -07:00
2024-03-13 09:01:00 +01:00
2024-04-17 08:42:41 -07:00
2024-04-17 08:42:41 -07:00
2024-07-15 16:12:42 -07:00
2024-06-06 14:48:23 -07:00
2023-12-23 16:23:55 -08:00
2023-12-23 16:23:55 -08:00
2024-11-21 12:29:18 -08:00
2024-10-15 13:26:39 +02:00
2024-10-17 17:27:57 -07:00
2024-09-18 16:19:35 -07:00
2024-09-30 13:41:20 +02:00
2024-07-12 13:41:01 +02:00
2024-10-17 17:27:57 -07:00
2024-07-18 18:14:54 -07:00
2024-09-09 13:41:08 -07:00
2024-11-24 00:58:39 -08:00
2024-08-07 22:02:32 -07:00
2024-09-22 19:05:20 +02:00
2024-09-22 19:05:20 +02:00
2024-07-13 10:31:03 +02:00
2024-01-11 12:23:33 +00:00
2023-12-26 11:21:06 -08:00
2024-10-22 22:44:35 -07:00
2024-02-25 21:10:01 +00:00
2024-01-24 21:17:45 -08:00
2024-10-15 13:26:39 +02:00
2024-09-10 17:02:15 -07:00
2024-09-16 15:12:46 +01:00
2024-09-16 15:12:46 +01:00
2024-12-03 00:31:19 +01:00
2023-11-27 14:17:03 -08:00
2024-11-14 10:35:35 -08:00
2024-10-10 20:56:25 -07:00
2024-09-18 16:19:35 -07:00
2023-11-29 11:00:17 -08:00
2024-03-08 21:58:32 -08:00
2024-03-08 21:22:57 -08:00
2024-11-21 12:29:18 -08:00
2024-03-01 07:26:47 +00:00
2024-03-01 07:26:47 +00:00
2024-09-30 13:41:20 +02:00
2024-11-18 23:18:54 -08:00
2024-07-18 18:02:50 +08:00
2024-10-31 19:20:46 -07:00
2024-09-23 06:55:14 -07:00
2024-10-31 19:20:46 -07:00
2024-03-26 08:45:12 +09:00
2024-07-22 06:26:08 +01:00
2024-03-13 09:25:43 +00:00
2024-09-26 00:22:14 -07:00
2024-10-14 20:02:26 +01:00
2024-07-25 17:38:44 -07:00
2024-09-07 15:46:17 -05:00
2023-12-20 17:58:03 -08:00
2023-12-23 16:23:55 -08:00
2023-12-22 23:38:01 -08:00
2023-12-26 11:21:06 -08:00
2024-02-06 09:18:06 +08:00
2024-07-22 06:26:08 +01:00
2024-03-21 15:04:19 -07:00
2024-08-03 22:19:44 +02:00
2024-10-10 21:01:07 -07:00
2024-07-18 18:14:54 -07:00
2024-05-15 08:58:14 +02:00
2023-12-04 10:28:41 -08:00
2024-09-02 09:31:51 +02:00
2024-04-25 17:00:26 +02:00
2023-12-04 10:28:41 -08:00
2024-04-25 17:00:26 +02:00
2023-12-04 10:28:41 -08:00
2023-12-20 15:38:43 -08:00
2024-09-24 09:33:17 +02:00
2024-08-11 19:01:12 -04:00
2024-09-04 23:00:13 -07:00
2024-01-11 12:23:33 +00:00
2024-01-11 12:23:33 +00:00
2024-10-11 16:58:42 -07:00
2024-10-11 16:58:42 -07:00
2024-10-11 14:47:01 -07:00
2024-10-11 14:47:01 -07:00
2024-09-21 13:05:51 -07:00
2024-09-12 00:50:54 -07:00
2024-08-08 13:51:07 +03:00
2024-09-09 13:41:08 -07:00
2024-09-19 10:45:45 -07:00
2024-09-19 10:45:45 -07:00
2024-09-19 10:45:45 -07:00
2024-09-11 23:26:22 -07:00
2024-10-17 16:59:49 -07:00
2024-09-12 13:38:53 -07:00