aboutsummaryrefslogtreecommitdiff
path: root/gold/configure
diff options
context:
space:
mode:
authorJing Yu <jingyu@google.com>2014-07-02 16:21:23 -0700
committerCary Coutant <ccoutant@google.com>2014-07-02 16:21:23 -0700
commit053a4d680b6b870079e7ba094b52a12a4861ce9b (patch)
tree6605ac7e288800f362a77c17dc42b6e897e1fe2b /gold/configure
parent2b239efbec446a0c213710b7c5258f2926ef78a4 (diff)
downloadgdb-053a4d680b6b870079e7ba094b52a12a4861ce9b.zip
gdb-053a4d680b6b870079e7ba094b52a12a4861ce9b.tar.gz
gdb-053a4d680b6b870079e7ba094b52a12a4861ce9b.tar.bz2
2014-07-02 Jing Yu <jingyu@google.com>
Initial patch to enable gold aarch64 backend. This patch is just a skeleton which almost does nothing. It does not support ILP32 now. gold/ChangeLog: * aarch64.cc: New file * Makefile.am (TARGETSOURCES): Add aarch64.cc (ALL_TARGETOBJS): Add aarch64.$(OBJEXT) * Makefile.in: Regenerate. * configure.tgt: Add entries for aarch64*. * configure.ac: Likewise. * configure: Likewise. elfcpp/ChangeLog: * aarch64.h: New file. New enums for aarch64-elf64 relocations. * elfcpp.h (EM_AARCH64, SHT_AARCH64_ATTRIBUTES, PT_AARCH64_ARCHEXT, PT_AARCH64_UNWIND): New enum constant.
Diffstat (limited to 'gold/configure')
-rwxr-xr-xgold/configure14
1 files changed, 14 insertions, 0 deletions
diff --git a/gold/configure b/gold/configure
index 9880635..7d7b849 100755
--- a/gold/configure
+++ b/gold/configure
@@ -698,6 +698,8 @@ DEFAULT_TARGET_I386_FALSE
DEFAULT_TARGET_I386_TRUE
DEFAULT_TARGET_ARM_FALSE
DEFAULT_TARGET_ARM_TRUE
+DEFAULT_TARGET_AARCH64_FALSE
+DEFAULT_TARGET_AARCH64_TRUE
PLUGINS_FALSE
PLUGINS_TRUE
THREADS_FALSE
@@ -3433,6 +3435,14 @@ for targ in $target $canon_targets; do
default_big_endian=$targ_big_endian
default_osabi=$targ_osabi
+ if test "$targ_obj" = "aarch64"; then
+ DEFAULT_TARGET_AARCH64_TRUE=
+ DEFAULT_TARGET_AARCH64_FALSE='#'
+else
+ DEFAULT_TARGET_AARCH64_TRUE='#'
+ DEFAULT_TARGET_AARCH64_FALSE=
+fi
+
if test "$targ_obj" = "arm"; then
DEFAULT_TARGET_ARM_TRUE=
DEFAULT_TARGET_ARM_FALSE='#'
@@ -7777,6 +7787,10 @@ if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
as_fn_error "conditional \"PLUGINS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
+if test -z "${DEFAULT_TARGET_AARCH64_TRUE}" && test -z "${DEFAULT_TARGET_AARCH64_FALSE}"; then
+ as_fn_error "conditional \"DEFAULT_TARGET_AARCH64\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
if test -z "${DEFAULT_TARGET_ARM_TRUE}" && test -z "${DEFAULT_TARGET_ARM_FALSE}"; then
as_fn_error "conditional \"DEFAULT_TARGET_ARM\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5