1
1
mirror of https://github.com/rui314/mold.git synced 2024-09-11 13:06:59 +03:00
mold/common
Rui Ueyama ea9864bbd5 Do not try to demangle C++ symbols as Rust ones
Previously, we always tried to demangle a symbol name as a Rust
symbol first and then attempted to demangle it as a C++ symbol.
This resulted in an incorrect demangled result, as the Rust legacy
mangling scheme is not distinguishable from C++.

This patch fix the issue by adding the "is_rust_obj" flag to the
ObjectFile. We try to demangle a symbol as a Rust one before as a C++
only if the flag is true.

Fixes https://github.com/rui314/mold/issues/1159
2023-11-30 13:53:23 +09:00
..
archive-file.h Reorganize files 2023-01-16 15:27:10 +08:00
cmdline.h Refactor 2023-10-10 12:01:08 +09:00
common.h Do not try to demangle C++ symbols as Rust ones 2023-11-30 13:53:23 +09:00
compress.cc Reorganize files 2023-01-16 15:27:10 +08:00
config.h.in Move more files under common/ 2023-01-16 15:35:24 +08:00
demangle.cc Do not try to demangle C++ symbols as Rust ones 2023-11-30 13:53:23 +09:00
filepath.cc Import changes for the sold linker 2023-01-26 08:34:04 +08:00
filetype.h Reorganize files 2023-01-16 15:27:10 +08:00
glob.cc Reorganize files 2023-01-16 15:27:10 +08:00
hyperloglog.cc replace pow(2,x) by ldexp(1.0,x) for performance 2023-07-20 09:28:35 +02:00
integers.h Reorganize files 2023-01-16 15:27:10 +08:00
main.cc Print out a hint about older versions of litbb 2023-06-04 15:28:44 +09:00
multi-glob.cc Reorganize files 2023-01-16 15:27:10 +08:00
output-file-unix.h Re-implement --gdb-index 2023-10-17 10:27:30 +09:00
output-file-win32.h Refactor 2023-10-13 13:14:01 +09:00
output-file.h Reorganize files 2023-01-16 15:27:10 +08:00
perf.cc Add commas 2023-01-23 21:45:23 +08:00
tar.cc Make --repro output readable by busybox's tar command 2023-07-28 15:12:45 +09:00
update-git-hash.cmake Move more files under common/ 2023-01-16 15:35:24 +08:00
uuid.cc Reorganize files 2023-01-16 15:27:10 +08:00