[bootlin/training-materials updates] master: labs/sysdev-application*: strip program after copying to rootfs (9e3b511a)

Michael Opdenacker michael.opdenacker at bootlin.com
Wed Feb 15 17:07:59 CET 2023


Repository : https://github.com/bootlin/training-materials
On branch  : master
Link       : https://github.com/bootlin/training-materials/commit/9e3b511a73a7dda88dccee57b75e43c32725d71e

>---------------------------------------------------------------

commit 9e3b511a73a7dda88dccee57b75e43c32725d71e
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date:   Wed Feb 15 17:07:59 2023 +0100

    labs/sysdev-application*: strip program after copying to rootfs
    
    As what we recommend. Let us not strip in the build environment.
    
    Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>


>---------------------------------------------------------------

9e3b511a73a7dda88dccee57b75e43c32725d71e
 .../sysdev-application-debugging-qemu.tex                        | 7 +++----
 .../sysdev-application-development-and-debugging.tex             | 9 ++++-----
 2 files changed, 7 insertions(+), 9 deletions(-)

diff --git a/labs/sysdev-application-debugging-qemu/sysdev-application-debugging-qemu.tex b/labs/sysdev-application-debugging-qemu/sysdev-application-debugging-qemu.tex
index 48ec82af..22f4e4a8 100644
--- a/labs/sysdev-application-debugging-qemu/sysdev-application-debugging-qemu.tex
+++ b/labs/sysdev-application-debugging-qemu/sysdev-application-debugging-qemu.tex
@@ -75,10 +75,9 @@ $ export PATH=$HOME/__SESSION_NAME__-labs/debugging/buildroot/output/host/bin:$P
 \end{bashinput}
 \normalsize
 
-With your cross-compiling toolchain
-compile the \code{data/vista-emulator.c} program, strip it with
-\code{arm-linux-strip}, and copy the resulting binary to the
-\code{/root} directory of the root filesystem.
+With your cross-compiling toolchain compile the \code{data/vista-emulator.c}
+program, copy the resulting binary to the \code{/root} directory of the root
+filesystem and then strip it.
 
 Back to target system, try to run the \code{/root/vista-emulator}
 program. It should hang indefinitely!
diff --git a/labs/sysdev-application-development-and-debugging/sysdev-application-development-and-debugging.tex b/labs/sysdev-application-development-and-debugging/sysdev-application-development-and-debugging.tex
index d4c870e9..f17ed1f4 100644
--- a/labs/sysdev-application-development-and-debugging/sysdev-application-development-and-debugging.tex
+++ b/labs/sysdev-application-development-and-debugging/sysdev-application-development-and-debugging.tex
@@ -68,9 +68,8 @@ $ arm-linux-gcc -o nunchuk-mpd-client nunchuk-mpd-client.c \
 $(pkg-config --libs libmpdclient)
 \end{bashinput}
 
-Strip the \code{nunchuk-mpd-client} program, and copy
-the resulting binary to the \code{/root} directory of the root
-filesystem.
+Copy the \code{nunchuk-mpd-client} executable to the \code{/root} directory
+of the root filesystem, and then strip it.
 
 Back to target system, try to run the program:
 
@@ -108,8 +107,8 @@ Take your time to study the \code{ltrace} output. That's interesting
 information! Back to our issue, the last lines of output should make the
 issue pretty obvious.
 
-Fix the bug in the code, recompile the program, strip it, copy it to
-the target and start it again.
+Fix the bug in the code, recompile the program, copy it to
+the target, strip it and start it again.
 
 You should now be able to use the new client, driving the server
 through the following Nunchuk inputs:




More information about the training-materials-updates mailing list