Differences from D4713:
- more labels in .symbtab (not in .dynsym)
- relocation safe (all @function symbols are local)
This patch can be also used as a base for D4722.
As an option, we can merge this with D4713 and use one of the approaches depending on the possibility of relocation issues.