elf: Ignore LD_AUDIT interfaces if la_version returns 0 [BZ #24122]
[platform/upstream/glibc.git] / elf / link.h
index 29e7ced..7a463bc 100644 (file)
@@ -1,6 +1,6 @@
 /* Data structure for communication from the run-time dynamic linker for
    loaded ELF shared objects.
-   Copyright (C) 1995-2013 Free Software Foundation, Inc.
+   Copyright (C) 1995-2019 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
@@ -86,7 +86,8 @@ struct link_map
     /* These first few members are part of the protocol with the debugger.
        This is the same format used in SVR4.  */
 
-    ElfW(Addr) l_addr;         /* Base address shared object is loaded at.  */
+    ElfW(Addr) l_addr;         /* Difference between the address in the ELF
+                                  file and the addresses in memory.  */
     char *l_name;              /* Absolute file name object was found in.  */
     ElfW(Dyn) *l_ld;           /* Dynamic section of the shared object.  */
     struct link_map *l_next, *l_prev; /* Chain of loaded objects.  */
@@ -147,9 +148,9 @@ struct dl_phdr_info
        whether or not each later member is available.  */
 
     /* Incremented when a new object may have been added.  */
-    unsigned long long int dlpi_adds;
+    __extension__ unsigned long long int dlpi_adds;
     /* Incremented when an object may have been removed.  */
-    unsigned long long int dlpi_subs;
+    __extension__ unsigned long long int dlpi_subs;
 
     /* If there is a PT_TLS segment, its module ID as used in
        TLS relocations, else zero.  */