• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Revisión86f7d49be5e3dee5ca8326e3766983a27a968486 (tree)
Tiempo2013-04-23 00:03:01
AutorAlan Modra <amodra@gmai...>
CommiterAlan Modra

Log Message

PR ld/15382
* elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Don't multiply
sh_size or reloc_count adjustment by count.

Cambiar Resumen

Diferencia incremental

--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,11 @@
11 2013-04-22 Alan Modra <amodra@gmail.com>
22
3+ PR ld/15382
4+ * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Don't multiply
5+ sh_size or reloc_count adjustment by count.
6+
7+2013-04-22 Alan Modra <amodra@gmail.com>
8+
39 * elf64-ppc.c (ppc64_elf_check_relocs): Don't call
410 create_linkage_sections here..
511 (ppc64_elf_init_stub_bfd): ..do so here. Return status.
--- a/bfd/elf-bfd.h
+++ b/bfd/elf-bfd.h
@@ -2497,16 +2497,16 @@ extern asection _bfd_elf_large_com_section;
24972497 rel_hdr = _bfd_elf_single_rel_hdr (input_section->output_section); \
24982498 \
24992499 /* Avoid empty output section. */ \
2500- if (rel_hdr->sh_size > count * rel_hdr->sh_entsize) \
2500+ if (rel_hdr->sh_size > rel_hdr->sh_entsize) \
25012501 { \
2502- rel_hdr->sh_size -= count * rel_hdr->sh_entsize; \
2502+ rel_hdr->sh_size -= rel_hdr->sh_entsize; \
25032503 rel_hdr = _bfd_elf_single_rel_hdr (input_section); \
2504- rel_hdr->sh_size -= count * rel_hdr->sh_entsize; \
2504+ rel_hdr->sh_size -= rel_hdr->sh_entsize; \
25052505 \
25062506 memmove (rel, rel + count, \
25072507 (relend - rel - count) * sizeof (*rel)); \
25082508 \
2509- input_section->reloc_count -= count; \
2509+ input_section->reloc_count--; \
25102510 relend -= count; \
25112511 rel--; \
25122512 continue; \