Improve link_map.l_addr comment.
authorJan Kratochvil <jan.kratochvil@redhat.com>
Sat, 2 Feb 2013 09:29:17 +0000 (10:29 +0100)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Sat, 2 Feb 2013 09:29:17 +0000 (10:29 +0100)
ChangeLog
elf/link.h
include/link.h

index 6125b47bac8447dc666d61bb526a796a5a34e9db..74b9a59f642a8c1189dd9eb20387ddad70d671b7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * elf/link.h (struct link_map): Extend the l_addr comment.
+       * include/link.h (struct link_map): Likewise.
+
 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
 
        [BZ #13550]
index 500871f451aba2b771205210b9618dc4fcf22c4f..a50ba83662fbc3d390abf1d21bea219d4e0fec05 100644 (file)
@@ -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.  */
index 12dcf038d30a99e646ce9cf5abbc85be1116742d..230e95d6c8eb67adc37893bf7051fc327d3ac47a 100644 (file)
@@ -87,7 +87,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.  */