remove some debug symbols from object files

Asked by adnan

I want to remove the following symbols from object files which are compiled using gcc for arm platform

.debug_frame
.debug_line
.debug_aranges
.debug_info
.debug_ranges

I am using the following compilation flags

-mcpu-cortex-r4f -march=armv7-r -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -std=gnu99

Question information

Language:
English Edit question
Status:
Solved
For:
GNU Arm Embedded Toolchain Edit question
Assignee:
No assignee Edit question
Solved by:
adnan
Solved:
Last query:
Last reply:
Revision history for this message
Thomas Preud'homme (thomas-preudhomme) said :
#1

Hi,

strip --strip-debug on your resulting binary should be able to strip these sections. Is that what you were looking for?

Best regards,

Thomas

Revision history for this message
adnan (m-adnanali-1) said :
#2

exactly