• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

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

修訂d0509e7f90c3131357c2d4f1d37a989eb3bb4a31 (tree)
時間2016-03-15 19:53:20
作者Leon Winter <winter-gcc@bfw-...>
CommiterNick Clifton

Log Message

Fix erroneous relocations applied to absolute symbols in COFF format targets.

PR ld/19623
* cofflink.c (_bfd_coff_generic_relocate_section): Do not apply
relocations against absolute symbols.

Change Summary

差異

--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,12 @@
1+2016-03-15 Nick Clifton <nickc@redhat.com>
2+
3+ Backport from master:
4+ 2016-03-09 Leon Winter <winter-gcc@bfw-online.de>
5+
6+ PR ld/19623
7+ * cofflink.c (_bfd_coff_generic_relocate_section): Do not apply
8+ relocations against absolute symbols.
9+
110 2016-03-14 H.J. Lu <hongjiu.lu@intel.com>
211
312 Backport from master
--- a/bfd/cofflink.c
+++ b/bfd/cofflink.c
@@ -2977,6 +2977,12 @@ _bfd_coff_generic_relocate_section (bfd *output_bfd,
29772977 else
29782978 {
29792979 sec = sections[symndx];
2980+
2981+ /* PR 19623: Relocations against symbols in
2982+ the absolute sections should ignored. */
2983+ if (bfd_is_abs_section (sec))
2984+ continue;
2985+
29802986 val = (sec->output_section->vma
29812987 + sec->output_offset
29822988 + sym->n_value);