From abc03682de0b05e165a8deb6f505849870179d61 Mon Sep 17 00:00:00 2001
From: John Ogness <john.ogness@linutronix.de>
Date: Mon, 22 Jan 2018 11:48:56 +0000
Subject: embedded-devel: add ld.so.cache info

We talk about the dynamic loader, so let's talk about how
to configure it too.

Signed-off-by: John Ogness <john.ogness@linutronix.de>
---
 .../embedded-devel/pres_embedded-devel_en.tex        | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

(limited to 'application-devel/embedded-devel/pres_embedded-devel_en.tex')

diff --git a/application-devel/embedded-devel/pres_embedded-devel_en.tex b/application-devel/embedded-devel/pres_embedded-devel_en.tex
index a405249..2440554 100644
--- a/application-devel/embedded-devel/pres_embedded-devel_en.tex
+++ b/application-devel/embedded-devel/pres_embedded-devel_en.tex
@@ -506,6 +506,26 @@ $ objdump -x hello2 | grep PATH
 \end{verbatim}
 \end{frame}
 
+\begin{frame}[containsverbatim]
+\frametitle{The Dynamic Loader Cache}
+The paths used to fill the ld.so.cache are listed in /etc/ld.so.conf and within .conf files in the /etc/ld.so.conf.d/ directory.
+\begin{verbatim}
+$ find /etc/ld.so.conf* -type f
+/etc/ld.so.conf
+/etc/ld.so.conf.d/fakeroot-x86_64-linux-gnu.conf
+/etc/ld.so.conf.d/libc.conf
+/etc/ld.so.conf.d/x86_64-linux-gnu.conf
+\end{verbatim}
+view the dynamic loader cache
+\begin{verbatim}
+/sbin/ldconfig -p
+\end{verbatim}
+update the dynamic loader cache
+\begin{verbatim}
+sudo /sbin/ldconfig
+\end{verbatim}
+\end{frame}
+
 \begin{frame}
 \frametitle{The Dynamic Loader}
 Awareness and understanding of the dynamic loader leads to:
-- 
cgit v1.2.3

