abe59f
commit 54816ae98d57930b7c945f17485714a5574bfe47
abe59f
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
abe59f
Date:   Thu Jul 29 11:13:57 2021 -0300
abe59f
abe59f
    elf: Move LAV_CURRENT to link_lavcurrent.h
abe59f
    
abe59f
    No functional change.
abe59f
abe59f
diff --git a/bits/link_lavcurrent.h b/bits/link_lavcurrent.h
abe59f
new file mode 100644
abe59f
index 0000000000000000..44fbea1e8060997f
abe59f
--- /dev/null
abe59f
+++ b/bits/link_lavcurrent.h
abe59f
@@ -0,0 +1,25 @@
abe59f
+/* Data structure for communication from the run-time dynamic linker for
abe59f
+   loaded ELF shared objects.  LAV_CURRENT definition.
abe59f
+   Copyright (C) 2021 Free Software Foundation, Inc.
abe59f
+   This file is part of the GNU C Library.
abe59f
+
abe59f
+   The GNU C Library is free software; you can redistribute it and/or
abe59f
+   modify it under the terms of the GNU Lesser General Public
abe59f
+   License as published by the Free Software Foundation; either
abe59f
+   version 2.1 of the License, or (at your option) any later version.
abe59f
+
abe59f
+   The GNU C Library is distributed in the hope that it will be useful,
abe59f
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
abe59f
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
abe59f
+   Lesser General Public License for more details.
abe59f
+
abe59f
+   You should have received a copy of the GNU Lesser General Public
abe59f
+   License along with the GNU C Library; if not, see
abe59f
+   <https://www.gnu.org/licenses/>.  */
abe59f
+
abe59f
+#ifndef _LINK_H
abe59f
+# error "Never include <bits/link_lavcurrent.h> directly; use <link.h> instead."
abe59f
+#endif
abe59f
+
abe59f
+/* Version numbers for la_version handshake interface.  */
abe59f
+#define LAV_CURRENT	1
abe59f
diff --git a/elf/Makefile b/elf/Makefile
abe59f
index 6262a4a65cfd2148..b9751e8bd87c4f71 100644
abe59f
--- a/elf/Makefile
abe59f
+++ b/elf/Makefile
abe59f
@@ -21,7 +21,7 @@ subdir		:= elf
abe59f
 
abe59f
 include ../Makeconfig
abe59f
 
abe59f
-headers		= elf.h bits/elfclass.h link.h bits/link.h
abe59f
+headers		= elf.h bits/elfclass.h link.h bits/link.h bits/link_lavcurrent.h
abe59f
 routines	= $(all-dl-routines) dl-support dl-iteratephdr \
abe59f
 		  dl-addr dl-addr-obj enbl-secure dl-profstub \
abe59f
 		  dl-origin dl-libc dl-sym dl-sysdep dl-error \
abe59f
diff --git a/elf/link.h b/elf/link.h
abe59f
index c67a50dd8ee9187e..cbda60b4135997f6 100644
abe59f
--- a/elf/link.h
abe59f
+++ b/elf/link.h
abe59f
@@ -96,7 +96,7 @@ struct link_map
abe59f
 #ifdef __USE_GNU
abe59f
 
abe59f
 /* Version numbers for la_version handshake interface.  */
abe59f
-#define LAV_CURRENT	1
abe59f
+#include <bits/link_lavcurrent.h>
abe59f
 
abe59f
 /* Activity types signaled through la_activity.  */
abe59f
 enum