On 6/30/23 07:28, Jędrzej Dudkiewicz via Gcc-help wrote:
This is basically the same as https://stackoverflow.com/questions/76580329/hide-symbols-from-executable I pasted it below in its entirety. If this is primarily a binutils question I will paste it there, but I *think* it is mostly a gcc related question.
You don't say whether you are using -ffunction-sections. -- Andrew Haley (he/him) Java Platform Lead Engineer Red Hat UK Ltd. <https://www.redhat.com> https://keybase.io/andrewhaley EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671