glibc/0017-Sw64-Introduce-elf-initfini.h-and-ELF_INITFINI-for-s.patch
swcompiler 55189b18b5 Sw64: Add Sw64 ISA support
(cherry picked from commit 7c7ae25b26c3c937686ae3f686a768532b14ec36)
2025-01-04 15:06:39 +08:00

41 lines
1.5 KiB
Diff

From b88a3af5562fe7e316b02f489821ee4dd3309490 Mon Sep 17 00:00:00 2001
From: swcompiler <lc@wxiat.com>
Date: Fri, 29 Nov 2024 17:19:07 +0800
Subject: [PATCH 17/23] Sw64: Introduce <elf-initfini.h> and ELF_INITFINI for
sw64
---
sysdeps/sw_64/elf-initfini.h | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
create mode 100644 sysdeps/sw_64/elf-initfini.h
diff --git a/sysdeps/sw_64/elf-initfini.h b/sysdeps/sw_64/elf-initfini.h
new file mode 100644
index 00000000..54a8d7cc
--- /dev/null
+++ b/sysdeps/sw_64/elf-initfini.h
@@ -0,0 +1,20 @@
+/* Determine DT_INIT/DT_FINI support in the dynamic loader. Sw_64 version.
+ Copyright (C) 2020-2023 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/>. */
+
+/* Enable DT_INIT/DT_FINI support. */
+#define ELF_INITFINI 1
--
2.25.1