You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mold version: mold 2.31.0 (20fa8d56f5e0c47d1f4bbf7b829c12d3f43298e1; compatible with GNU ld)
g++ version: g++ (Debian 8.3.0-6) 8.3.0
lld version: Debian LLD 16.0.6 (compatible with GNU linkers)
Problem:
After we moved to mold, we found that the functions have strange names in the addr2line output. Their beginnings may
be cut off.
How we build the final binary:
Codegen from PHP to c++. This turns into about 200kc++ files that lie in 100 folders
(about 2k c++ files in one folder);
All c++ are compiled into o files;
From the o files from each folder, we make a "middle" o file via relocating
(2k o files from a folder into one "average" o file. In the end, there will be 100 of them.);
100 "average" o files are collected into a final binary.
Reproducer:
Ready code, it will run the g++ compiler and the two linkers mold and lld by itself
If you run the command, you will see that the beginning of some attributes has been cut off. And part of the attributes
contains information that shouldn't be there. :(
Environment:
Debian GNU/Linux 10 (buster)
mold
version:mold 2.31.0 (20fa8d56f5e0c47d1f4bbf7b829c12d3f43298e1; compatible with GNU ld)
g++
version:g++ (Debian 8.3.0-6) 8.3.0
lld
version:Debian LLD 16.0.6 (compatible with GNU linkers)
Problem:
After we moved to
mold
, we found that the functions have strange names in theaddr2line
output. Their beginnings maybe cut off.
How we build the final binary:
PHP
toc++
. This turns into about 200kc++
files that lie in 100 folders(about 2k
c++
files in one folder);c++
are compiled intoo
files;o
files from each folder, we make a "middle"o
file via relocating(2k
o
files from a folder into one "average"o
file. In the end, there will be 100 of them.);o
files are collected into a final binary.Reproducer:
Research:
If you run the command, you will see that the beginning of some attributes has been cut off. And part of the attributes
contains information that shouldn't be there. :(
I checked what's going on at
lld
, so it's fine.The text was updated successfully, but these errors were encountered: