_bfd_clear_contents bounds checking
[deliverable/binutils-gdb.git] / bfd / elf32-i386.c
index 49797dcbfaffd335a326e50a068dd456b74ad78d..177471777df4a679139ef4ba2e23af7e299846a7 100644 (file)
@@ -2197,7 +2197,7 @@ elf_i386_relocate_section (bfd *output_bfd,
       if (sec != NULL && discarded_section (sec))
        {
          _bfd_clear_contents (howto, input_bfd, input_section,
-                              contents + rel->r_offset);
+                              contents, rel->r_offset);
          wrel->r_offset = rel->r_offset;
          wrel->r_info = 0;
          wrel->r_addend = 0;
This page took 0.024534 seconds and 4 git commands to generate.