]> sourceware.org Git - systemtap.git/commitdiff
2007-07-02 Martin Hunt <hunt@redhat.com>
authorhunt <hunt>
Mon, 2 Jul 2007 07:17:10 +0000 (07:17 +0000)
committerhunt <hunt>
Mon, 2 Jul 2007 07:17:10 +0000 (07:17 +0000)
* symbols.c (get_sections): Set data pointer to the lowest address
of any data section.

runtime/staprun/ChangeLog
runtime/staprun/symbols.c

index af2c647e94d78c98499c120fc8656a9ab9adede9..018e8024ec592b33a87ff6b0445f7131f29a826a 100644 (file)
@@ -1,3 +1,8 @@
+2007-07-02  Martin Hunt  <hunt@redhat.com>
+
+       * symbols.c (get_sections): Set data pointer to the lowest address
+       of any data section.
+
 2007-06-21  Martin Hunt  <hunt@redhat.com>
 
        * relay.c (init_relayfs): Send message to check for bulkmode.
index c8758c37a5fc41b6cdb52c4ab32736b741af9ad5..49755c5e0f22eb785cdcfd6da34e0bab9e44f551 100644 (file)
@@ -92,8 +92,10 @@ static int get_sections(char *name, char *data_start, int datalen)
                                strdata += strlen(secname) + 1;
 
                                /* These sections are used a lot so keep the values handy */
-                               if (!strcmp(secname, ".data"))
-                                       mod->data = sec->addr;
+                               if (!strcmp(secname, ".data") || !strncmp(secname, ".rodata", 7)) {
+                                       if (mod->data == 0 || sec->addr < mod->data)
+                                               mod->data = sec->addr;
+                               }
                                if (!strcmp(secname, ".text"))
                                        mod->text = sec->addr;
                                if (!strcmp(secname, ".gnu.linkonce.this_module"))
This page took 0.029365 seconds and 5 git commands to generate.