diff options
Diffstat (limited to 'chapter05')
-rw-r--r-- | chapter05/binutils-pass1.xml | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/chapter05/binutils-pass1.xml b/chapter05/binutils-pass1.xml index 65e8dd2ae..c3bf1f117 100644 --- a/chapter05/binutils-pass1.xml +++ b/chapter05/binutils-pass1.xml @@ -75,7 +75,8 @@ cd build</userinput></screen> --target=$LFS_TGT \ --disable-nls \ --enable-gprofng=no \ - --disable-werror</userinput></screen> + --disable-werror \ + --enable-default-hash-style=gnu</userinput></screen> <variablelist> <title>The meaning of the configure options:</title> @@ -132,6 +133,22 @@ cd build</userinput></screen> </listitem> </varlistentry> + <varlistentry> + <term><parameter>--enable-default-hash-style=gnu</parameter></term> + <listitem> + <para>By default, the linker would generate both the GNU-style + hash table and the classic ELF hash table for shared libraries and + dynamically linked executables. The hash tables are only intended + for a dynamic linker to perform symbol lookup. On LFS the dynamic + linker (provided by the Glibc package) will always use the + GNU-style hash table which is faster to query. So the classic + ELF hash table is completely useless. This makes the the linker + only generate the GNU-style hash table by default, so we can avoid + wasting time to generate the classic ELF hash table when we build + the packages, or wasting disk space to store it.</para> + </listitem> + </varlistentry> + </variablelist> <para>Continue with compiling the package:</para> |