forked from Imagelibrary/binutils-gdb
* write.c (dump_section_relocs): Call print_symbol_value_1 to
print the symbol, rather than printing it here. 1999-09-11 Donn Terry <donn@interix.com> * write.c (adjust_reloc_syms): Print adjusted fixup.
This commit is contained in:
@@ -1,5 +1,12 @@
|
|||||||
|
1999-09-11 Ian Lance Taylor <ian@zembu.com>
|
||||||
|
|
||||||
|
* write.c (dump_section_relocs): Call print_symbol_value_1 to
|
||||||
|
print the symbol, rather than printing it here.
|
||||||
|
|
||||||
1999-09-11 Donn Terry <donn@interix.com>
|
1999-09-11 Donn Terry <donn@interix.com>
|
||||||
|
|
||||||
|
* write.c (adjust_reloc_syms): Print adjusted fixup.
|
||||||
|
|
||||||
* expr.c (integer_constant): Correct too_many_digits calculation
|
* expr.c (integer_constant): Correct too_many_digits calculation
|
||||||
in base 10 case.
|
in base 10 case.
|
||||||
|
|
||||||
|
|||||||
30
gas/write.c
30
gas/write.c
@@ -645,7 +645,7 @@ relax_and_size_seg (abfd, sec, xxx)
|
|||||||
#ifdef DEBUG2
|
#ifdef DEBUG2
|
||||||
static void
|
static void
|
||||||
dump_section_relocs (abfd, sec, stream_)
|
dump_section_relocs (abfd, sec, stream_)
|
||||||
bfd *abfd;
|
bfd *abfd ATTRIBUTE_UNUSED;
|
||||||
asection *sec;
|
asection *sec;
|
||||||
char *stream_;
|
char *stream_;
|
||||||
{
|
{
|
||||||
@@ -660,22 +660,16 @@ dump_section_relocs (abfd, sec, stream_)
|
|||||||
while (fixp)
|
while (fixp)
|
||||||
{
|
{
|
||||||
symbolS *s = fixp->fx_addsy;
|
symbolS *s = fixp->fx_addsy;
|
||||||
if (s)
|
|
||||||
{
|
fprintf (stream, " %08lx: type %d ", (unsigned long) fixp,
|
||||||
fprintf (stream, " %08x: %s(%s", fixp, S_GET_NAME (s),
|
(int) fixp->fx_r_type);
|
||||||
s->bsym->section->name);
|
if (s == NULL)
|
||||||
if (s->bsym->flags & BSF_SECTION_SYM)
|
fprintf (stream, "no sym\n");
|
||||||
{
|
|
||||||
fprintf (stream, " section sym");
|
|
||||||
if (S_GET_VALUE (s))
|
|
||||||
fprintf (stream, "+%x", S_GET_VALUE (s));
|
|
||||||
}
|
|
||||||
else
|
|
||||||
fprintf (stream, "+%x", S_GET_VALUE (s));
|
|
||||||
fprintf (stream, ")+%x\n", fixp->fx_offset);
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
fprintf (stream, " %08x: type %d no sym\n", fixp, fixp->fx_r_type);
|
{
|
||||||
|
print_symbol_value_1 (stream, s);
|
||||||
|
fprintf (stream, "\n");
|
||||||
|
}
|
||||||
fixp = fixp->fx_next;
|
fixp = fixp->fx_next;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -866,6 +860,10 @@ adjust_reloc_syms (abfd, sec, xxx)
|
|||||||
fixp->fx_offset += S_GET_VALUE (sym);
|
fixp->fx_offset += S_GET_VALUE (sym);
|
||||||
fixp->fx_addsy = section_symbol (S_GET_SEGMENT (sym));
|
fixp->fx_addsy = section_symbol (S_GET_SEGMENT (sym));
|
||||||
symbol_mark_used_in_reloc (fixp->fx_addsy);
|
symbol_mark_used_in_reloc (fixp->fx_addsy);
|
||||||
|
#ifdef DEBUG5
|
||||||
|
fprintf (stderr, "\nadjusted fixup:\n");
|
||||||
|
print_fixup (fixp);
|
||||||
|
#endif
|
||||||
|
|
||||||
done:
|
done:
|
||||||
;
|
;
|
||||||
|
|||||||
Reference in New Issue
Block a user