]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
elf: Move LAV_CURRENT to link_lavcurrent.h
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 29 Jul 2021 14:13:57 +0000 (11:13 -0300)
committerCarlos O'Donell <carlos@redhat.com>
Tue, 29 Mar 2022 21:02:26 +0000 (17:02 -0400)
No functional change.

(cherry picked from commit 54816ae98d57930b7c945f17485714a5574bfe47)

Resolved conflicts:
elf/Makefile

bits/link_lavcurrent.h [new file with mode: 0644]
elf/Makefile
elf/link.h

diff --git a/bits/link_lavcurrent.h b/bits/link_lavcurrent.h
new file mode 100644 (file)
index 0000000..44fbea1
--- /dev/null
@@ -0,0 +1,25 @@
+/* Data structure for communication from the run-time dynamic linker for
+   loaded ELF shared objects.  LAV_CURRENT definition.
+   Copyright (C) 2021 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 _LINK_H
+# error "Never include <bits/link_lavcurrent.h> directly; use <link.h> instead."
+#endif
+
+/* Version numbers for la_version handshake interface.  */
+#define LAV_CURRENT    1
index 54b91f8668033976ed3d6d18473faaf4e98f01d5..252841f6e5832767cd55952ba8fa7c2edc2a0b3f 100644 (file)
@@ -24,6 +24,7 @@ include ../Makeconfig
 headers = \
   bits/elfclass.h \
   bits/link.h \
+  bits/link_lavcurrent.h \
   elf.h \
   link.h \
   # headers
index ff3a85c847930b9b9a764c47c1c15f415ef49540..21a351686b9bf7c85859014a99b2cd3cdcb5b513 100644 (file)
@@ -96,7 +96,7 @@ struct link_map
 #ifdef __USE_GNU
 
 /* Version numbers for la_version handshake interface.  */
-#define LAV_CURRENT    1
+#include <bits/link_lavcurrent.h>
 
 /* Activity types signaled through la_activity.  */
 enum