diff options
author | Ian Lance Taylor <iant@google.com> | 2008-02-06 20:32:10 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2008-02-06 20:32:10 +0000 |
commit | fbfba5088712eb014b9051baa71f9636359d159e (patch) | |
tree | 6836ec1f682dc1c4954429d9be124c268d530526 /gold/configure.tgt | |
parent | 755ab8af10558c40e5090e92c46bbbd89815c292 (diff) | |
download | gdb-fbfba5088712eb014b9051baa71f9636359d159e.zip gdb-fbfba5088712eb014b9051baa71f9636359d159e.tar.gz gdb-fbfba5088712eb014b9051baa71f9636359d159e.tar.bz2 |
Support creating empty output when there are no input objects.
Diffstat (limited to 'gold/configure.tgt')
-rw-r--r-- | gold/configure.tgt | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/gold/configure.tgt b/gold/configure.tgt new file mode 100644 index 0000000..93615aa --- /dev/null +++ b/gold/configure.tgt @@ -0,0 +1,55 @@ +# configure.tgt -- target configuration for gold -*- sh -*- + +# Copyright 2006, 2007, 2008 Free Software Foundation, Inc. +# Written by Ian Lance Taylor <iant@google.com>. + +# This file is part of gold. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, +# MA 02110-1301, USA. + +# This script handles target configuration for gold. This is shell +# code invoked by the autoconf generated configure script. Putting +# this in a separate file lets us skip running autoconf when modifying +# target specific information. + +# This file switches on the shell variable ${targ}, which is a +# canonicalized GNU configuration triplet. It sets the following +# shell variables: + +# targ_obj object file to include in the link, with no extension +# targ_machine ELF machine code for this target +# targ_size size of this target--32 or 64 +# targ_big_endian whether the target is big-endian--true or false + +# If the target is not recognized targ_obj is set to "UNKNOWN". + +case "$targ" in +i?86-*) + targ_obj=i386 + targ_machine=EM_386 + targ_size=32 + targ_big_endian=false + ;; +x86_64*) + targ_obj=x86_64 + targ_machine=EM_X86_64 + targ_size=64 + targ_big_endian=false + ;; +*) + targ_obj=UNKNOWN + ;; +esac |