Is there a way to force gcc
to generate only subset of full debug info that will be sufficient for addr2line
utility? Or any way to strip unneeded? I've tried
$ objcopy --only-keep-debug --remove-section=.debug_loc --remove-section=.debug_aranges --remove-section=.debug_frame my-elf-file
Is there anything that may be stripped in addition?