How to GC unused eh_frame ?
Jojo R
rjiejie@linux.alibaba.com
Mon Jun 6 11:44:32 GMT 2022
Hi guys,
I compiled C++ source codes with compiler’s option as '-ffunction-sections -fdata-sections -Wl,--gc-sections’,
and I found that some unused code size of ‘eh_frame’s which are come from unused functions are linked together into output elf file :(
I want to know whether Binutils has a nice way or configure to tell AS to split monolithic ‘eh_frame’ to <function>.eh_frame like ‘.text.<function>’ ?
and then the unused <function>.eh_frames will been GCed :)
Any suggestions ?
Regards,
— Jojo
More information about the Binutils
mailing list