Page MenuHomeFreeBSD

D1826.diff
No OneTemporary

D1826.diff

Index: head/contrib/elftoolchain/libdwarf/libdwarf_elf_init.c
===================================================================
--- head/contrib/elftoolchain/libdwarf/libdwarf_elf_init.c
+++ head/contrib/elftoolchain/libdwarf/libdwarf_elf_init.c
@@ -70,11 +70,15 @@
offset = rela.r_offset;
size = _dwarf_get_reloc_size(dbg, type);
+ if (size == 0)
+ continue; /* Unknown or non-absolute relocation. */
if (endian == ELFDATA2MSB)
- _dwarf_write_msb(buf, &offset, rela.r_addend, size);
+ _dwarf_write_msb(buf, &offset,
+ sym.st_value + rela.r_addend, size);
else
- _dwarf_write_lsb(buf, &offset, rela.r_addend, size);
+ _dwarf_write_lsb(buf, &offset,
+ sym.st_value + rela.r_addend, size);
}
}

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 20, 6:49 PM (19 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15533932
Default Alt Text
D1826.diff (738 B)

Event Timeline