3 ms·
For #2, many linkers _do_ support "identical code folding", and gold has an option to only merge functions which never have their address taken.
by grogers 4y ago
For #2, many linkers _do_ support "identical code folding", and gold has an option to only merge functions which never have their address taken.
- astrange 4y agoAlthough doing this means debuginfo won't be available, so you won't get source lines if the merged code crashes.