Changeset 76d113f
- Timestamp:
- 09/21/2003 03:05:40 AM (21 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.0, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, v5_0, v5_1, v5_1_1, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- ebd8ee2
- Parents:
- dc19fb6
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter05/gcc-pass2-inst.xml
rdc19fb6 r76d113f 36 36 37 37 <para>The last patch changes GCC's default location of the dynamic linker 38 (typically ld-linux.so.2). It also removes <filename class="directory">/usr/include 39 </filename> from GCC's include search path. Patching now rather than adjusting 40 the specs file after installation ensures that our new dynamic linker gets used 41 during the actual build of GCC. That is, all the final (and temporary) binaries 42 created during the build will link against the new Glibc.</para> 38 (typically <filename>ld-linux.so.2</filename>). It also removes 39 <filename class="directory">/usr/include</filename> from GCC's include search 40 path. Patching now rather than adjusting the specs file after installation 41 ensures that our new dynamic linker gets used during the actual build of GCC. 42 That is, all the final (and temporary) binaries created during the build will 43 link against the new Glibc.</para> 44 45 <important><para>These patches are <emphasis>critical</emphasis> in ensuring a 46 successful overall build. Do not forget to apply them.</para></important> 43 47 44 48 <para>Create a separate build directory again:</para> -
chapter06/adjustingtoolchain.xml
rdc19fb6 r76d113f 37 37 38 38 <caution><para>It is imperative at this point to stop and ensure that the 39 basic function ality of the adjusted toolchain is working as expected. We are40 going to perform a simple sanity check:</para>39 basic functions (compiling and linking) of the adjusted toolchain are working 40 as expected. For this we are going to perform a simple sanity check:</para> 41 41 42 42 <para><screen><userinput>echo 'main(){}' > dummy.c … … 44 44 readelf -l a.out | grep ': /lib'</userinput></screen></para> 45 45 46 <para>If everything is working correctly, the output of the last command will47 be:</para>46 <para>If everything is working correctly, there should be no errors, and the 47 output of the last command will be:</para> 48 48 49 49 <para><screen>[Requesting program interpreter: /lib/ld-linux.so.2] 50 50 </screen></para> 51 51 52 <para>If you did not receive the output as shown above then something is52 <para>If you did not receive the output as shown above, then something is 53 53 seriously wrong. You will need to investigate and retrace your steps to find 54 54 out where the problem is and correct it. There is no point in continuing 55 until this is done. Most likely ,something went wrong with the specs file55 until this is done. Most likely something went wrong with the specs file 56 56 amendment above. Note especially that <filename>/lib</filename> now appears as 57 57 the prefix of our dynamic linker. Of course, if you are working on a platform 58 58 where the name of the dynamic linker is something other than <filename> 59 ld-linux.so.2</filename> then the output will be slightly different.</para>59 ld-linux.so.2</filename>, then the output will be slightly different.</para> 60 60 61 61 <para>Once you are satisfied that all is well, clean up the test files:</para>
Note:
See TracChangeset
for help on using the changeset viewer.