about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/arc/ldsodefs.h
diff options
context:
space:
mode:
authorVineet Gupta <vgupta@synopsys.com>2018-10-23 14:58:39 -0700
committerVineet Gupta <vgupta@synopsys.com>2020-07-10 16:08:44 -0700
commitc86a9483f4fbb401be4125b7b6ca490a6d3e776c (patch)
treeeec367c5fa83a4d08d2e8b257fb5cb06505d88d8 /sysdeps/unix/sysv/linux/arc/ldsodefs.h
parente5ccf113cdcf053815bc368119eb992aa39c2cc6 (diff)
downloadglibc-c86a9483f4fbb401be4125b7b6ca490a6d3e776c.tar.gz
glibc-c86a9483f4fbb401be4125b7b6ca490a6d3e776c.tar.xz
glibc-c86a9483f4fbb401be4125b7b6ca490a6d3e776c.zip
ARC: Linux Startup and Dynamic Loading
A big shoutout to Cupertino Miranda <cmiranda@synopsys.com> for his
valuable contribution in initial bringup and debugging on Linux and
later in solving pesky unwinding/cancelation failures in testsuite.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/unix/sysv/linux/arc/ldsodefs.h')
-rw-r--r--sysdeps/unix/sysv/linux/arc/ldsodefs.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/arc/ldsodefs.h b/sysdeps/unix/sysv/linux/arc/ldsodefs.h
new file mode 100644
index 0000000000..204a0ff894
--- /dev/null
+++ b/sysdeps/unix/sysv/linux/arc/ldsodefs.h
@@ -0,0 +1,32 @@
+/* Run-time dynamic linker data structures for loaded ELF shared objects. ARC
+   Copyright (C) 2020 Free Software Foundation, Inc.
+   This file is part of the GNU C Library.
+
+   The GNU C Library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Lesser General Public
+   License as published by the Free Software Foundation; either
+   version 2.1 of the License, or (at your option) any later version.
+
+   The GNU C Library 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
+   Lesser General Public License for more details.
+
+   You should have received a copy of the GNU Lesser General Public
+   License along with the GNU C Library; if not, see
+   <https://www.gnu.org/licenses/>.  */
+
+#ifndef	_LDSODEFS_H
+
+/* Get the real definitions.  */
+#include_next <ldsodefs.h>
+
+/* Now define our stuff.  */
+
+/* We need special support to initialize DSO loaded for statically linked
+   binaries.  */
+extern void _dl_static_init (struct link_map *map);
+#undef DL_STATIC_INIT
+#define DL_STATIC_INIT(map) _dl_static_init (map)
+
+#endif /* ldsodefs.h */