From 426a5393370a62e5d7fa098c6524b28cecd83bdb Mon Sep 17 00:00:00 2001 From: William Harrington Date: Thu, 3 Mar 2022 10:47:43 -0600 Subject: [PATCH] Adjust interpreter for aarch64. --- chapter08/gcc.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chapter08/gcc.xml b/chapter08/gcc.xml index fd73012a6..6fb885440 100644 --- a/chapter08/gcc.xml +++ b/chapter08/gcc.xml @@ -205,7 +205,7 @@ readelf -l a.out | grep ': /lib' and the output of the last command will be (allowing for platform-specific differences in the dynamic linker name): -[Requesting program interpreter: /lib64/ld-linux-x86-64.so.2] +[Requesting program interpreter: /lib64/ld-linux-aarch64.so.1] Now make sure that we're setup to use the correct start files: @@ -232,7 +232,7 @@ readelf -l a.out | grep ': /lib' This command should return the following output: #include <...> search starts here: - /usr/lib/gcc/aarch-64-unknown-linux-gnu/&gcc-version;/include + /usr/lib/gcc/aarch64-unknown-linux-gnu/&gcc-version;/include /usr/local/include /usr/lib/gcc/aarch64-unknown-linux-gnu/&gcc-version;/include-fixed /usr/include @@ -279,7 +279,7 @@ SEARCH_DIR("/usr/lib"); The output of the last command should be (allowing for platform-specific differences in dynamic linker name): -found ld-linux-x86-64.so.2 at /usr/lib/ld-linux-x86-64.so.2 +found ld-linux-aarch64.so.1 at /usr/lib/ld-linux-aarch64.so.1 If the output does not appear as shown above or is not received at all, then something is seriously wrong. Investigate and retrace the