Correct errors in some comments (bfd_perform_relocation was refered to

instead of bfd_install_relocation).
This commit is contained in:
David Edelsohn
1997-02-13 23:12:14 +00:00
parent 89b41978ab
commit 9e6f4c6b9d
2 changed files with 3 additions and 3 deletions

View File

@ -8542,7 +8542,7 @@ md_apply_fix (fixP, valueP)
case BFD_RELOC_PCREL_HI16_S: case BFD_RELOC_PCREL_HI16_S:
/* The addend for this is tricky if it is internal, so we just /* The addend for this is tricky if it is internal, so we just
do everything here rather than in bfd_perform_relocation. */ do everything here rather than in bfd_install_relocation. */
if ((fixP->fx_addsy->bsym->flags & BSF_SECTION_SYM) == 0) if ((fixP->fx_addsy->bsym->flags & BSF_SECTION_SYM) == 0)
{ {
/* For an external symbol adjust by the address to make it /* For an external symbol adjust by the address to make it
@ -8562,7 +8562,7 @@ md_apply_fix (fixP, valueP)
case BFD_RELOC_PCREL_LO16: case BFD_RELOC_PCREL_LO16:
/* The addend for this is tricky if it is internal, so we just /* The addend for this is tricky if it is internal, so we just
do everything here rather than in bfd_perform_relocation. */ do everything here rather than in bfd_install_relocation. */
if ((fixP->fx_addsy->bsym->flags & BSF_SECTION_SYM) == 0) if ((fixP->fx_addsy->bsym->flags & BSF_SECTION_SYM) == 0)
value += fixP->fx_frag->fr_address + fixP->fx_where; value += fixP->fx_frag->fr_address + fixP->fx_where;
buf = (unsigned char *) fixP->fx_frag->fr_literal + fixP->fx_where; buf = (unsigned char *) fixP->fx_frag->fr_literal + fixP->fx_where;

View File

@ -2398,7 +2398,7 @@ md_apply_fix3 (fixP, value, segment)
#ifdef OBJ_ELF #ifdef OBJ_ELF
/* FIXME: SPARC ELF relocations don't use an addend in the data /* FIXME: SPARC ELF relocations don't use an addend in the data
field itself. This whole approach should be somehow combined field itself. This whole approach should be somehow combined
with the calls to bfd_perform_relocation. Also, the value passed with the calls to bfd_install_relocation. Also, the value passed
in by fixup_segment includes the value of a defined symbol. We in by fixup_segment includes the value of a defined symbol. We
don't want to include the value of an externally visible symbol. */ don't want to include the value of an externally visible symbol. */
if (fixP->fx_addsy != NULL) if (fixP->fx_addsy != NULL)