[bootlin/training-materials updates] master: debugging: labs: fix commands to compile binaries (1afc2888)

Clément Léger clement.leger at bootlin.com
Wed Nov 23 10:02:05 CET 2022


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

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

commit 1afc28887bc63fd9e12dedfff1590c29f6d2e2cc
Author: Clément Léger <clement.leger at bootlin.com>
Date:   Wed Nov 23 09:17:45 2022 +0100

    debugging: labs: fix commands to compile binaries
    
    Signed-off-by: Clément Léger <clement.leger at bootlin.com>


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

1afc28887bc63fd9e12dedfff1590c29f6d2e2cc
 lab-data/debugging/nfsroot/root/system_profiling/Makefile             | 4 ++--
 labs/debugging-application-crash/debugging-application-crash.tex      | 2 +-
 .../debugging-system-wide-profiling.tex                               | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/lab-data/debugging/nfsroot/root/system_profiling/Makefile b/lab-data/debugging/nfsroot/root/system_profiling/Makefile
index 1e90a1df..bc54bf59 100644
--- a/lab-data/debugging/nfsroot/root/system_profiling/Makefile
+++ b/lab-data/debugging/nfsroot/root/system_profiling/Makefile
@@ -1,4 +1,4 @@
 CC=${CROSS_COMPILE}gcc
 
-primes: primes.c
-	${CC} $< -g3 -lpng -o $@
+crc_random: crc_random.c
+	${CC} $< -g3 -o $@
diff --git a/labs/debugging-application-crash/debugging-application-crash.tex b/labs/debugging-application-crash/debugging-application-crash.tex
index 62b8fe85..6e7a0916 100644
--- a/labs/debugging-application-crash/debugging-application-crash.tex
+++ b/labs/debugging-application-crash/debugging-application-crash.tex
@@ -26,7 +26,7 @@ following command:
 
 \begin{bashinput}
 $ cd /home/<user>/debugging-labs/nfsroot/root/gdb/
-$ ${CROSS_COMPILE}gcc linked_list.c -Wall -Werror -o linked_list
+$ make
 \end{bashinput}
 
 By default, it will look for a \code{word_list} file located in the current
diff --git a/labs/debugging-system-wide-profiling/debugging-system-wide-profiling.tex b/labs/debugging-system-wide-profiling/debugging-system-wide-profiling.tex
index c509e27c..84b7dba2 100644
--- a/labs/debugging-system-wide-profiling/debugging-system-wide-profiling.tex
+++ b/labs/debugging-system-wide-profiling/debugging-system-wide-profiling.tex
@@ -47,7 +47,7 @@ Before starting to profile, we will compile our program to be instrumented:
 
 \begin{bashinput}
 $ cd /home/<user>/debugging-labs/nfsroot/root/system_profiling
-$  $(CROSS_COMPILE)-gcc -Wall -Werror -g3 crc_random.c -o crc_random
+$ make
 \end{bashinput}
 
 On the target, we will create a uprobe in the main function of the




More information about the training-materials-updates mailing list