Being const + weak breaks with some compilers that constant-propagate
from the weak symbol. This behavior is outside of the specification, but
in LLVM is chosen to match GCC's behavior.
LLVM's implementation was set in this patch:
|
||
|---|---|---|
| .. | ||
| Build | ||
| auxtrace.c | ||
| cs-etm.c | ||
| cs-etm.h | ||
| dwarf-regs.c | ||
| perf_regs.c | ||
| pmu.c | ||
| unwind-libdw.c | ||
| unwind-libunwind.c | ||