aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2021-07-29 11:13:57 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2021-11-15 15:28:17 -0300
commit54816ae98d57930b7c945f17485714a5574bfe47 (patch)
tree34a7f89f1fe24a05dd1c7655a95c3b56a6531a84
parent120ac6d238825452e8024e2f627da33b2508dfd3 (diff)
downloadglibc-54816ae98d57930b7c945f17485714a5574bfe47.zip
glibc-54816ae98d57930b7c945f17485714a5574bfe47.tar.gz
glibc-54816ae98d57930b7c945f17485714a5574bfe47.tar.bz2
elf: Move LAV_CURRENT to link_lavcurrent.h
No functional change.
-rw-r--r--bits/link_lavcurrent.h25
-rw-r--r--elf/Makefile2
-rw-r--r--elf/link.h2
3 files changed, 27 insertions, 2 deletions
diff --git a/bits/link_lavcurrent.h b/bits/link_lavcurrent.h
new file mode 100644
index 0000000..44fbea1
--- /dev/null
+++ b/bits/link_lavcurrent.h
@@ -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
diff --git a/elf/Makefile b/elf/Makefile
index 7200448..a311c3e 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -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 \
diff --git a/elf/link.h b/elf/link.h
index 200d40c..0906bbe 100644
--- a/elf/link.h
+++ b/elf/link.h
@@ -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