Skip to contentSkip to conversation

Stripping debug symbols

DISCUSSION Mauro Ziliani 2 participants 2 messages Apr 11, 2019 – Apr 12, 2019

lore
Share & tools
lore
#0 lore raw

Hi all.

I worked on my project woth Krogoth, gcc 5.3.0, on imx6dlsabresd board.

My application is build with cmake 3.4.3, shipped with BSP.

I'd like to strip debug symbols from the final binary, but if I prepend the strip parameter in CMAKE_{C,CXX}_FLAGS_RELEASE in my CMakeLists.txt, bitbake give me errors.

What is the right path to follow to strip final binary?

With debug info the binary is 109MB, without 5MB

Best regards,

 Mauro

#1 lore raw

Build should strip it automatically what does your build recipe look like

Quoted 27 lines · Mauro Ziliani

Hi all.

I worked on my project woth Krogoth, gcc 5.3.0, on imx6dlsabresd board.

My application is build with cmake 3.4.3, shipped with BSP.

I'd like to strip debug symbols from the final binary, but if I prepend the strip parameter in CMAKE_{C,CXX}_FLAGS_RELEASE in my CMakeLists.txt, bitbake give me errors.

What is the right path to follow to strip final binary?

With debug info the binary is 109MB, without 5MB

Best regards,

Mauro

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto