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