]> sourceware.org Git - 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)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 15 Nov 2021 18:28:17 +0000 (15:28 -0300)
No functional change.

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 72004484dbf85f9a1d46dbe6b63cdb6786627ba0..a311c3e23cea2edc582e698e6be19824b1a76e7a 100644 (file)
@@ -21,7 +21,7 @@ subdir                := elf
 
 include ../Makeconfig
 
-headers                = elf.h bits/elfclass.h link.h bits/link.h
+headers                = elf.h bits/elfclass.h link.h bits/link.h bits/link_lavcurrent.h
 routines       = $(all-dl-routines) dl-support dl-iteratephdr \
                  dl-addr dl-addr-obj enbl-secure dl-profstub \
                  dl-origin dl-libc dl-sym dl-sysdep dl-error \
index 200d40c9c635ccc3b0315d6c0e76285ae5f1f92f..0906bbe33fbd9f8f0d699914fbee37da976d60de 100644 (file)
@@ -113,7 +113,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
This page took 0.052648 seconds and 5 git commands to generate.