mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 09:58:19 +08:00
Correct errors in some comments (bfd_perform_relocation was refered to
instead of bfd_install_relocation).
This commit is contained in:
@ -8542,7 +8542,7 @@ md_apply_fix (fixP, valueP)
|
||||
|
||||
case BFD_RELOC_PCREL_HI16_S:
|
||||
/* 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)
|
||||
{
|
||||
/* 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:
|
||||
/* 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)
|
||||
value += fixP->fx_frag->fr_address + fixP->fx_where;
|
||||
buf = (unsigned char *) fixP->fx_frag->fr_literal + fixP->fx_where;
|
||||
|
@ -2398,7 +2398,7 @@ md_apply_fix3 (fixP, value, segment)
|
||||
#ifdef OBJ_ELF
|
||||
/* FIXME: SPARC ELF relocations don't use an addend in the data
|
||||
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
|
||||
don't want to include the value of an externally visible symbol. */
|
||||
if (fixP->fx_addsy != NULL)
|
||||
|
Reference in New Issue
Block a user