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