diff options
author | Joshua Conner <joshconner@google.com> | 2017-05-06 00:22:38 +0000 |
---|---|---|
committer | Josh Conner <jconner@gcc.gnu.org> | 2017-05-06 00:22:38 +0000 |
commit | 7ab8766a8e316026c592a2fdbcb342fef7bb887b (patch) | |
tree | c6f8bc937644178a124618d76081674b3c657601 /libgcc/config | |
parent | 08dd548e8db027bd4e26fa3df8f130cf47a54213 (diff) | |
download | gcc-7ab8766a8e316026c592a2fdbcb342fef7bb887b.zip gcc-7ab8766a8e316026c592a2fdbcb342fef7bb887b.tar.gz gcc-7ab8766a8e316026c592a2fdbcb342fef7bb887b.tar.bz2 |
Add fuchsia support to libgcc
* config/arm/unwind-arm.h (_Unwind_decode_typeinfo_ptr): Use
pc-relative indirect handling for fuchsia.
* config/t-slibgcc-fuchsia: New file.
* config.host (*-*-fuchsia*, aarch64*-*-fuchsia*, arm*-*-fuchsia*,
x86_64-*-fuchsia*): Add definitions.
From-SVN: r247710
Diffstat (limited to 'libgcc/config')
-rw-r--r-- | libgcc/config/arm/unwind-arm.h | 2 | ||||
-rw-r--r-- | libgcc/config/t-slibgcc-fuchsia | 44 |
2 files changed, 45 insertions, 1 deletions
diff --git a/libgcc/config/arm/unwind-arm.h b/libgcc/config/arm/unwind-arm.h index 9fb854f..9ceec54 100644 --- a/libgcc/config/arm/unwind-arm.h +++ b/libgcc/config/arm/unwind-arm.h @@ -49,7 +49,7 @@ extern "C" { return 0; #if (defined(linux) && !defined(__uClinux__)) || defined(__NetBSD__) \ - || defined(__FreeBSD__) + || defined(__FreeBSD__) || defined(__fuchsia__) /* Pc-relative indirect. */ #define _GLIBCXX_OVERRIDE_TTYPE_ENCODING (DW_EH_PE_pcrel | DW_EH_PE_indirect) tmp += ptr; diff --git a/libgcc/config/t-slibgcc-fuchsia b/libgcc/config/t-slibgcc-fuchsia new file mode 100644 index 0000000..a171283 --- /dev/null +++ b/libgcc/config/t-slibgcc-fuchsia @@ -0,0 +1,44 @@ +# Copyright (C) 2017 Free Software Foundation, Inc. +# +# This file is part of GCC. +# +# GCC 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, or (at your option) +# any later version. +# +# GCC 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 GCC; see the file COPYING3. If not see +# <http://www.gnu.org/licenses/>. + +# Fuchsia-specific shared library overrides. + +SHLIB_LDFLAGS = -Wl,--soname=$(SHLIB_SONAME) \ + $(LDFLAGS) +# Copyright (C) 2017 Free Software Foundation, Inc. +# +# This file is part of GCC. +# +# GCC 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, or (at your option) +# any later version. +# +# GCC 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 GCC; see the file COPYING3. If not see +# <http://www.gnu.org/licenses/>. + +# Fuchsia-specific shared library overrides. + +SHLIB_LDFLAGS = -Wl,--soname=$(SHLIB_SONAME) \ + $(LDFLAGS) |