aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06
diff options
context:
space:
mode:
Diffstat (limited to 'chapter06')
-rw-r--r--chapter06/libelf.xml7
-rw-r--r--chapter06/strippingagain.xml2
2 files changed, 8 insertions, 1 deletions
diff --git a/chapter06/libelf.xml b/chapter06/libelf.xml
index 56ec31d96..716dd52d4 100644
--- a/chapter06/libelf.xml
+++ b/chapter06/libelf.xml
@@ -44,6 +44,13 @@
<para>Libelf is part of elfutils-&elfutils-version; package. Use
the elfutils-&elfutils-version;.tar.xz as the source tarball.</para>
+ <para>Fiirst, fix a file to be compatible with gcc-8"</para>
+
+<screen><userinput remap="pre">sed -e '/ALIGN_PRSTATUS)/{
+ s/__attribute/attribute_packed &amp;/
+ s/packed, //}' \
+ -i backends/linux-core-note.c</userinput></screen>
+
<para>Prepare Libelf for compilation:</para>
<screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
diff --git a/chapter06/strippingagain.xml b/chapter06/strippingagain.xml
index db4a605b0..821ac8315 100644
--- a/chapter06/strippingagain.xml
+++ b/chapter06/strippingagain.xml
@@ -45,7 +45,7 @@ done
save_usrlib="libquadmath.so.&libquadmath-version; libstdc++.so.&libstdcpp-version;
libmpx.so.&libmpx-version; libmpxwrappers.so.&libmpxwrap-version; libitm.so.&libitm-version;
- libcilkrts.so.&libcilkrts-version; libatomic.so.&libatomic-version;"
+ libatomic.so.&libatomic-version;" <!-- libcilkrts.so.&libcilkrts-version;-->
cd /usr/lib