# Application files are not stripped

**URL:** <https://forum.legato.io/t/application-files-are-not-stripped/3618>\
**Category:** Uncategorized\
**Created:** [September 6, 2018, 6:31am UTC](https://forum.legato.io/t/application-files-are-not-stripped/3618 "2018-09-06T06:31:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lazzox](https://avatars.discourse-cdn.com/v4/letter/l/b9bd4f/32.png) [@lazzox](https://forum.legato.io/u/lazzox)\
**Post date:** [September 6, 2018, 6:31am UTC](https://forum.legato.io/t/application-files-are-not-stripped/3618/1 "2018-09-06T06:31:45Z")

</div>

I have a Legato application from which I make an update file with (mkapp) pointing to its .adef file, update is installed and I can do a search on the target (WP76xx) to locate executable.  
After finding the executable I saw that its not stripped and contains debug info, my question would be how to build an app without debug info and strip it?

myApplication: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.3, for GNU/Linux 3.2.0, BuildID[sha1]=06feee0b3f48b37969188e08b1f106d40c2e2d0f, with debug\_info, not stripped

---

<div class="post-metadata">

**Author:** ![JayM2M](https://avatars.discourse-cdn.com/v4/letter/j/3d9bf3/32.png) [@JayM2M](https://forum.legato.io/u/JayM2M)\
**Post date:** [September 6, 2018, 4:46pm UTC](https://forum.legato.io/t/application-files-are-not-stripped/3618/2 "2018-09-06T16:46:58Z")

</div>

Hi,

Did you try to add a `ldflags` section in your cdef file with `--strip-all`?

> **[Component Definition .cdef - Legato Docs](https://docs.legato.io/latest/defFilesCdef.html#defFilesCdef_ldFlags)**
>
> legato™ is an open source Linux-based embedded platform designed to simplify connected IoT application development

Jay

---

<div class="post-metadata">

**Author:** ![lazzox](https://avatars.discourse-cdn.com/v4/letter/l/b9bd4f/32.png) [@lazzox](https://forum.legato.io/u/lazzox)\
**Post date:** [September 7, 2018, 9:13am UTC](https://forum.legato.io/t/application-files-are-not-stripped/3618/3 "2018-09-07T09:13:26Z")

</div>

I’ve added that to my ldflags section and I get this as a result:

arm-poky-linux-gnueabi-g++: error: unrecognized command line option ‘–strip-all’; did you mean ‘–warn-all’?

Am I missing something more? Thank you for suggestions

Lazzo

---

<div class="post-metadata">

**Author:** ![JayM2M](https://avatars.discourse-cdn.com/v4/letter/j/3d9bf3/32.png) [@JayM2M](https://forum.legato.io/u/JayM2M)\
**Post date:** [September 7, 2018, 10:36am UTC](https://forum.legato.io/t/application-files-are-not-stripped/3618/4 "2018-09-07T10:36:35Z")

</div>

Sorry, my bad.  
Please replace “`--strip-all`” by “`-s`”.

---

<div class="post-metadata">

**Author:** ![lazzox](https://avatars.discourse-cdn.com/v4/letter/l/b9bd4f/32.png) [@lazzox](https://forum.legato.io/u/lazzox)\
**Post date:** [September 7, 2018, 11:12am UTC](https://forum.legato.io/t/application-files-are-not-stripped/3618/5 "2018-09-07T11:12:17Z")

</div>

Thank you so much for helping me with this, it did the job.  
Lazzo
