samples/powerpc-e500v2-linux-gnuspe/reported.by
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Nov 23 21:35:28 2010 +0100 (2010-11-23)
branch1.9
changeset 2198 6d909657dbdf
parent 2139 983823b3b569
child 2290 ba82eb173bd4
permissions -rw-r--r--
scripts/xldd: better find sysroot with old gcc

Only starting with 4.4 does gcc have a -print-sysroot option.
For 4.3 or before, we have to play some tricks:
- ask gcc where libc.so is,
(we expect it in ${sysroot}/usr/lib/libc.so)
- trim /usr/lib/libc.so from the result

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from aa2305c5b2a57fbcda9a1b5bb5fb3a476ac49a13)
     1 reporter_name="Anthony Foiani <anthony.foiani@gmail.com>"
     2 reporter_url="http://sourceware.org/ml/crossgcc/2010-09/msg00100.html"
     3 reporter_comment="
     4 This is a sample config file for Freescale e500v2 processors (e.g., MPC8548,
     5 MPC8572). It uses eglibc (for e500/SPE patches) and a recent gcc (4.5.1,
     6 for e500v2 DPFP support) and will generate appropriate dual-precision
     7 floating point instructions by default.
     8 
     9 Note: If building a Linux kernel with this toolchain, you will want to make
    10 sure -mno-spe AND -mspe=no are passed to gcc to prevent SPE ABI/instructions
    11 from getting into the kernel (which is currently unsupported). At this time,
    12 the kernel build system properly passes those two options, but older kernels
    13 were only passing -mno-spe by default."