diff options
author | Ken Raeburn <raeburn@cygnus> | 1994-09-29 23:00:45 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@cygnus> | 1994-09-29 23:00:45 +0000 |
commit | 9dc6c00f8d5c987d8f62e3e2422e1ecc5f0da384 (patch) | |
tree | 35ce9a2f4056fdac952fa927fc891060f185f90a /gas | |
parent | 12cf5d98c7889e4f3ce9d3a4ebf2f8d99cb78fb7 (diff) | |
download | fsf-binutils-gdb-9dc6c00f8d5c987d8f62e3e2422e1ecc5f0da384.zip fsf-binutils-gdb-9dc6c00f8d5c987d8f62e3e2422e1ecc5f0da384.tar.gz fsf-binutils-gdb-9dc6c00f8d5c987d8f62e3e2422e1ecc5f0da384.tar.bz2 |
* write.c (print_fixup): Print source location on first line. Show fx_r_type
and fx_addsy fields.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/write.c | 16 |
2 files changed, 19 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 65aa436..3324835 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +Thu Sep 29 18:57:06 1994 Ken Raeburn <raeburn@cujo.cygnus.com> + + * write.c (print_fixup): Print source location on first line. + Show fx_r_type and fx_addsy fields. + Wed Sep 28 14:56:39 1994 Ken Raeburn <raeburn@cujo.cygnus.com> * configure.in: Set bfd_gas for all sparc targets in one place, diff --git a/gas/write.c b/gas/write.c index 6c109a3..60ab13e 100644 --- a/gas/write.c +++ b/gas/write.c @@ -2354,7 +2354,7 @@ print_fixup (fixp) fixS *fixp; { indent_level = 1; - fprintf (stderr, "fix"); + fprintf (stderr, "fix %s:%d", fixp->fx_file, fixp->fx_line); if (fixp->fx_pcrel) fprintf (stderr, " pcrel"); if (fixp->fx_pcrel_adjust) @@ -2371,10 +2371,22 @@ print_fixup (fixp) fprintf (stderr, " tcbit"); if (fixp->fx_done) fprintf (stderr, " done"); - fprintf (stderr, "\n %s:%d", fixp->fx_file, fixp->fx_line); fprintf (stderr, "\n size=%d frag=%lx where=%ld addnumber=%lx", fixp->fx_size, (long) fixp->fx_frag, fixp->fx_where, (long) fixp->fx_addnumber); +#ifdef BFD_ASSEMBLER + fprintf (stderr, "\n %s (%d)", bfd_get_reloc_code_name (fixp->fx_r_type), + fixp->fx_r_type); +#else + fprintf (stderr, " r_type=%d", fixp->fx_r_type); +#endif + if (fixp->fx_addsy) + { + fprintf (stderr, "\n <"); + print_symbol_value_1 (stderr, fixp->fx_addsy); + fprintf (stderr, ">"); + } + fprintf (stderr, "\n"); } /* end of write.c */ |