https://sourceware.org/bugzilla/show_bug.cgi?id=32769
Fangrui Song <i at maskray dot me> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |i at maskray dot me
--- Comment #1 from Fangrui Song <i at maskray dot me> ---
The __patchable_function_entries section had very similar issues. I reported
https://gcc.gnu.org/legacy-ml/gcc/2020-01/msg00105.html The solution is
* Create a __patchable_function_entries for each separate text section (either
from COMDAT group of -ffunction-sections). This utilizes the `,unique` feature
for the .section directive
* Set the SHF_LINK_ORDER flag
Then the garbage collection will work on all linkers that have properly
implemented SHF_LINK_ORDER
https://maskray.me/blog/2021-02-28-linker-garbage-collection
Note that it doesn't scale for a linker to support all sorts of different
metadata sections.
--
You are receiving this mail because:
You are on the CC list for the bug.