aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/libelf.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter06/libelf.xml')
-rw-r--r--chapter06/libelf.xml7
1 files changed, 7 insertions, 0 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>