projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ELF/BFD: Hold the number of internal static relocs in `->reloc_count'
[deliverable/binutils-gdb.git]
/
bfd
/
elf.c
diff --git
a/bfd/elf.c
b/bfd/elf.c
index 34d39c547b6c9b721554d7e488891ee5f41de633..b0da500dc7aa4846da6f3482a3344687ff3431b7 100644
(file)
--- a/
bfd/elf.c
+++ b/
bfd/elf.c
@@
-2374,7
+2374,8
@@
bfd_section_from_shdr (bfd *abfd, unsigned int shindex)
*hdr2 = *hdr;
*p_hdr = hdr2;
elf_elfsections (abfd)[shindex] = hdr2;
*hdr2 = *hdr;
*p_hdr = hdr2;
elf_elfsections (abfd)[shindex] = hdr2;
- target_sect->reloc_count += NUM_SHDR_ENTRIES (hdr);
+ target_sect->reloc_count += (NUM_SHDR_ENTRIES (hdr)
+ * bed->s->int_rels_per_ext_rel);
target_sect->flags |= SEC_RELOC;
target_sect->relocation = NULL;
target_sect->rel_filepos = hdr->sh_offset;
target_sect->flags |= SEC_RELOC;
target_sect->relocation = NULL;
target_sect->rel_filepos = hdr->sh_offset;
This page took
0.02856 seconds
and
4
git commands to generate.