• 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

Revision04981bc1fb2151ec0d6adf57793eea41779c2f34 (tree)
Time2009-06-16 11:14:12
AuthorMaciej W. Rozycki <macro@linu...>
CommiterMaciej W. Rozycki

Log Message

bfd/
* elf32-vax.c (elf_vax_relocate_section): For symbol references
from an executable to a shared library treat R_VAX_PC32
relocations as R_VAX_PLT32 ones.

Change Summary

Incremental Difference

--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,11 @@
11 2009-06-16 Maciej W. Rozycki <macro@linux-mips.org>
22
3+ * elf32-vax.c (elf_vax_relocate_section): For symbol references
4+ from an executable to a shared library treat R_VAX_PC32
5+ relocations as R_VAX_PLT32 ones.
6+
7+2009-06-16 Maciej W. Rozycki <macro@linux-mips.org>
8+
39 * elf32-vax.c (elf_vax_instantiate_got_entries): Skip local
410 symbols in GOT space calculation.
511 (elf_vax_relocate_section): Adjust accordingly.
--- a/bfd/elf32-vax.c
+++ b/bfd/elf32-vax.c
@@ -1544,6 +1544,14 @@ elf_vax_relocate_section (bfd *output_bfd,
15441544 }
15451545 break;
15461546
1547+ case R_VAX_PC32:
1548+ /* If we are creating an executable and the function this
1549+ reloc refers to is in a shared lib, then we made a PLT
1550+ entry for this symbol and need to handle the reloc like
1551+ a PLT reloc. */
1552+ if (info->shared)
1553+ goto r_vax_pc32_shared;
1554+ /* Fall through. */
15471555 case R_VAX_PLT32:
15481556 /* Relocation is to the entry for this symbol in the
15491557 procedure linkage table. */
@@ -1605,7 +1613,7 @@ elf_vax_relocate_section (bfd *output_bfd,
16051613
16061614 case R_VAX_PC8:
16071615 case R_VAX_PC16:
1608- case R_VAX_PC32:
1616+ r_vax_pc32_shared:
16091617 if (h == NULL
16101618 || ELF_ST_VISIBILITY (h->other) != STV_DEFAULT
16111619 || h->forced_local)