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