【问题标题】:avr-gcc: is there an UB sanitizeravr-gcc:是否有 UB 消毒剂
【发布时间】:2020-01-22 15:09:32
【问题描述】:

尝试对 AVR 目标使用 UB sanitizer:

avr-gcc -Wall  -mmcu=attiny1614 -fsanitize=undefined  bm02.c 
/usr/local/lib/gcc/avr/10.0.0/../../../../avr/bin/ld: cannot find
-lubsan collect2: error: ld returned 1 exit status

可以在 UBsan 支持下构建 avr-gcc 吗?

【问题讨论】:

    标签: avr avr-gcc sanitizer


    【解决方案1】:

    没有。

    目前,avr-g++ 没有完整的 C++ 支持,对于此类目标,顶级 configure.ac switches off libsanitizer。这是因为 libsanitizer 是用 C++ 编写的,参见。 ubsan sources.

    【讨论】:

      猜你喜欢
      • 2021-04-02
      • 1970-01-01
      • 2019-08-24
      • 2019-12-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-03-06
      • 1970-01-01
      相关资源
      最近更新 更多