This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] gas should honor original section type (was Re:ELF section identification and gld)


On Fri, Sep 10, 2004 at 10:47:11AM +0100, Dave Korn wrote:
> > From: binutils-owner On Behalf Of Jan Beulich
> > (in the architecture independent parts), is there any mechanism to
> > build/test all (default) architectures without having to 
> > manually build
> > them individually?
> 
>   I believe the correct answer to that question is to add
> "--enable-targets=all" to your configure line.  You still need to specify
> --target=XXX to select which one is the default.

No, all that does is compile all (well, most) of the bfd backends.  Gas
isn't multi-architecture, so you won't be testing much of gas.  I use
the following script

for z in a29k-coff alpha-linuxecoff alpha-linux arc-elf arm-aout arm-coff arm-linux avr-elf cris-elf d10v-elf d30v-elf dlx-elf fr30-elf frv-elf hppa-linux hppa64-linux h8300-rtems h8300-elf h8500-rtems i370-linux i586-coff i586-aout i586-linux i686-pe i860-stardent-elf i960-intel-nindy i960-coff i960-elf ia64-linux ip2k-elf m32r-elf m68hc11-elf m68hc12-elf m68k-aout m68k-netbsd m68k-coff m68k-linux m88k-coff mcore-elf mcore-pe mips-ecoff mips-linux mmix mn10200-elf mn10300-elf openrisc-elf or32-coff or32-elf pj-elf powerpc-linux powerpc64-linux rs6000-aix4.3.3 rs6000-aix5.1 s390x-linux s390-linux sh-linux sh-pe sh-rtems sh64-elf ns32k-netbsd sparc-aout sparc-coff sparc-linux sparc64-linux tic30-unknown-aout tic30-unknown-coff tic4x-coff tic54x-coff tic80-coff v850-elf vax-netbsdelf vax-netbsd vax-vms w65-unknown-coff x86_64-linux xstormy16-elf z8k-coff
do
  echo -n "$z "
  test -d $z || mkdir $z
  cd $z;
  echo "CFLAGS=\"-g -O\" /src/binutils-current/configure --prefix=/usr/local --disable-nls --build=i586-linux --host=i586-linux --target=$z" > ../zzz
  chmod 755 ../zzz
  xx=9
  for x in 8 7 6 5 4 3 2 1 0
  do
    test -f make.log$x && mv -f make.log$x make.log$xx
    test -f check.log$x && mv -f check.log$x check.log$xx
    xx=$x
  done
  if test x$1 = xfull || ! test -f zzz || ! cmp -s zzz ../zzz; then
    mv make.log? check.log? ..
    rm -rf *
    mv -f ../zzz ../make.log? ../check.log? .
    ./zzz >& make.log0
  else
    rm ../zzz
    ./zzz >& make.log0
#    make clean > /dev/null 2>&1
  fi
  if make >> make.log0 2>&1; then
    if make -k check > check.log0 2>&1; then
      echo -n OK
    else
      echo -n check
    fi
  else
    echo -n make
  fi
  echo
  cd ..
done


-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]