mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 18:39:34 +08:00
* write.c (fixup_segment): Return void. Delete seg_reloc_count
related code. (TC_ADJUST_RELOC_COUNT): Delete. * config/tc-i960.h (TC_ADJUST_RELOC_COUNT): Delete.
This commit is contained in:
@ -1,3 +1,10 @@
|
|||||||
|
2013-02-04 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
* write.c (fixup_segment): Return void. Delete seg_reloc_count
|
||||||
|
related code.
|
||||||
|
(TC_ADJUST_RELOC_COUNT): Delete.
|
||||||
|
* config/tc-i960.h (TC_ADJUST_RELOC_COUNT): Delete.
|
||||||
|
|
||||||
2013-02-04 Alan Modra <amodra@gmail.com>
|
2013-02-04 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* po/POTFILES.in: Regenerate.
|
* po/POTFILES.in: Regenerate.
|
||||||
|
@ -147,12 +147,6 @@ extern int reloc_callj (struct fix *);
|
|||||||
/* We store the bal information in the sy_tc field. */
|
/* We store the bal information in the sy_tc field. */
|
||||||
#define TC_SYMFIELD_TYPE symbolS *
|
#define TC_SYMFIELD_TYPE symbolS *
|
||||||
|
|
||||||
#define TC_ADJUST_RELOC_COUNT(FIX,COUNT) \
|
|
||||||
{ fixS *tcfixp = (FIX); \
|
|
||||||
for (;tcfixp;tcfixp=tcfixp->fx_next) \
|
|
||||||
if (tcfixp->fx_tcbit && tcfixp->fx_addsy != 0) \
|
|
||||||
++(COUNT); \
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern int i960_validate_fix (struct fix *, segT);
|
extern int i960_validate_fix (struct fix *, segT);
|
||||||
|
21
gas/write.c
21
gas/write.c
@ -30,10 +30,6 @@
|
|||||||
#include "libbfd.h"
|
#include "libbfd.h"
|
||||||
#include "compress-debug.h"
|
#include "compress-debug.h"
|
||||||
|
|
||||||
#ifndef TC_ADJUST_RELOC_COUNT
|
|
||||||
#define TC_ADJUST_RELOC_COUNT(FIX, COUNT)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef TC_FORCE_RELOCATION
|
#ifndef TC_FORCE_RELOCATION
|
||||||
#define TC_FORCE_RELOCATION(FIX) \
|
#define TC_FORCE_RELOCATION(FIX) \
|
||||||
(generic_force_reloc (FIX))
|
(generic_force_reloc (FIX))
|
||||||
@ -890,15 +886,12 @@ adjust_reloc_syms (bfd *abfd ATTRIBUTE_UNUSED,
|
|||||||
handled now. (These consist of fixS where we have since discovered
|
handled now. (These consist of fixS where we have since discovered
|
||||||
the value of a symbol, or the address of the frag involved.)
|
the value of a symbol, or the address of the frag involved.)
|
||||||
For each one, call md_apply_fix to put the fix into the frag data.
|
For each one, call md_apply_fix to put the fix into the frag data.
|
||||||
|
Ones that we couldn't completely handle here will be output later
|
||||||
|
by emit_relocations. */
|
||||||
|
|
||||||
Result is a count of how many relocation structs will be needed to
|
static void
|
||||||
handle the remaining fixS's that we couldn't completely handle here.
|
|
||||||
These will be output later by emit_relocations(). */
|
|
||||||
|
|
||||||
static long
|
|
||||||
fixup_segment (fixS *fixP, segT this_segment)
|
fixup_segment (fixS *fixP, segT this_segment)
|
||||||
{
|
{
|
||||||
long seg_reloc_count = 0;
|
|
||||||
valueT add_number;
|
valueT add_number;
|
||||||
fragS *fragP;
|
fragS *fragP;
|
||||||
segT add_symbol_segment = absolute_section;
|
segT add_symbol_segment = absolute_section;
|
||||||
@ -928,10 +921,8 @@ fixup_segment (fixS *fixP, segT this_segment)
|
|||||||
symbol_mark_used_in_reloc (fixP->fx_addsy);
|
symbol_mark_used_in_reloc (fixP->fx_addsy);
|
||||||
if (fixP->fx_subsy != NULL)
|
if (fixP->fx_subsy != NULL)
|
||||||
symbol_mark_used_in_reloc (fixP->fx_subsy);
|
symbol_mark_used_in_reloc (fixP->fx_subsy);
|
||||||
seg_reloc_count++;
|
|
||||||
}
|
}
|
||||||
TC_ADJUST_RELOC_COUNT (fixP, seg_reloc_count);
|
return;
|
||||||
return seg_reloc_count;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (; fixP; fixP = fixP->fx_next)
|
for (; fixP; fixP = fixP->fx_next)
|
||||||
@ -1073,7 +1064,6 @@ fixup_segment (fixS *fixP, segT this_segment)
|
|||||||
|
|
||||||
if (!fixP->fx_done)
|
if (!fixP->fx_done)
|
||||||
{
|
{
|
||||||
++seg_reloc_count;
|
|
||||||
if (fixP->fx_addsy == NULL)
|
if (fixP->fx_addsy == NULL)
|
||||||
fixP->fx_addsy = abs_section_sym;
|
fixP->fx_addsy = abs_section_sym;
|
||||||
symbol_mark_used_in_reloc (fixP->fx_addsy);
|
symbol_mark_used_in_reloc (fixP->fx_addsy);
|
||||||
@ -1126,9 +1116,6 @@ fixup_segment (fixS *fixP, segT this_segment)
|
|||||||
print_fixup (fixP);
|
print_fixup (fixP);
|
||||||
#endif
|
#endif
|
||||||
} /* For each fixS in this segment. */
|
} /* For each fixS in this segment. */
|
||||||
|
|
||||||
TC_ADJUST_RELOC_COUNT (fixP, seg_reloc_count);
|
|
||||||
return seg_reloc_count;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Reference in New Issue
Block a user