]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
dwarflint: relocation of DW_LNE_set_address doesn't have to be against executable
authorPetr Machata <pmachata@redhat.com>
Wed, 8 Apr 2009 12:55:19 +0000 (14:55 +0200)
committerPetr Machata <pmachata@redhat.com>
Fri, 10 Apr 2009 13:43:26 +0000 (15:43 +0200)
src/dwarflint.c

index 6b5eee3d3e0d303451cacfa602022b27cdb4ad62..20189b0f84f63e7f08a3c1185b2512a9a083c04d 100644 (file)
@@ -5040,7 +5040,7 @@ check_line_structural (struct section_data *data,
                      if ((rel = relocation_next (&data->rel, ctx_offset,
                                                  &where, skip_mismatched)))
                        relocate_one (&data->rel, rel, data->file->addr_64 ? 8 : 4,
-                                     &addr, &where, sec_text, NULL);
+                                     &addr, &where, rel_address, NULL);
                      else if (data->file->ehdr.e_type == ET_REL)
                        wr_message (mc_impact_2 | mc_line | mc_reloc, &where,
                                    PRI_LACK_RELOCATION, "DW_LNE_set_address");