aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-11-20 22:27:49 +0000
committerIan Lance Taylor <ian@airs.com>1995-11-20 22:27:49 +0000
commit520dd8d5d9f7978300dce032586c0f2fb3ddc2a3 (patch)
treec0c0962c688787824ea990f22fed071a222c91df /gas
parenta418e05d6d8afdcaa3329b0ccefce09cc77c15c4 (diff)
downloadgdb-520dd8d5d9f7978300dce032586c0f2fb3ddc2a3.zip
gdb-520dd8d5d9f7978300dce032586c0f2fb3ddc2a3.tar.gz
gdb-520dd8d5d9f7978300dce032586c0f2fb3ddc2a3.tar.bz2
* config/tc-ppc.c (ppc_debug_name_section_size): Remove.
(ppc_stabx): Don't increment ppc_debug_name_section_size. (ppc_bc): Likewise. (ppc_frob_file): Remove. * config/tc-ppc.h (tc_frob_file): Don't define. (ppc_frob_file): Don't declare.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog9
-rw-r--r--gas/config/tc-ppc.c36
2 files changed, 13 insertions, 32 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 39d6e7f..d2f0d87 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,12 @@
+Mon Nov 20 17:26:00 1995 Ian Lance Taylor <ian@cygnus.com>
+
+ * config/tc-ppc.c (ppc_debug_name_section_size): Remove.
+ (ppc_stabx): Don't increment ppc_debug_name_section_size.
+ (ppc_bc): Likewise.
+ (ppc_frob_file): Remove.
+ * config/tc-ppc.h (tc_frob_file): Don't define.
+ (ppc_frob_file): Don't declare.
+
Mon Nov 20 13:37:05 1995 Ken Raeburn <raeburn@cygnus.com>
* Makefile.in (TARG_CPU_DEP_alpha): Mention alpha-opcode.h.
diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c
index 488f74b..3b66929 100644
--- a/gas/config/tc-ppc.c
+++ b/gas/config/tc-ppc.c
@@ -510,9 +510,6 @@ static symbolS *ppc_current_block;
cause BFD to set the section number of a symbol to N_DEBUG. */
static asection *ppc_coff_debug_section;
-/* The size of the .debug section. */
-static bfd_size_type ppc_debug_name_section_size;
-
#endif /* OBJ_XCOFF */
#ifdef TE_PE
@@ -2243,13 +2240,6 @@ ppc_stabx (ignore)
ppc_current_csect->sy_tc.within = sym;
}
- if (strlen (name) > SYMNMLEN)
- {
- /* For some reason, each name is preceded by a two byte length
- and followed by a null byte. */
- ppc_debug_name_section_size += strlen (name) + 3;
- }
-
demand_empty_rest_of_line ();
}
@@ -2577,9 +2567,6 @@ ppc_bc (ignore)
ppc_frob_label (sym);
- if (strlen (name) > SYMNMLEN)
- ppc_debug_name_section_size += strlen (name) + 3;
-
demand_empty_rest_of_line ();
}
@@ -3794,25 +3781,6 @@ ppc_frob_section (sec)
vma += bfd_section_size (stdoutput, sec);
}
-/* Adjust the file by adding a .debug section if needed. */
-
-void
-ppc_frob_file ()
-{
- if (ppc_debug_name_section_size > 0)
- {
- asection *sec;
-
- sec = bfd_make_section (stdoutput, ".debug");
- if (sec == (asection *) NULL
- || ! bfd_set_section_size (stdoutput, sec,
- ppc_debug_name_section_size)
- || ! bfd_set_section_flags (stdoutput, sec,
- SEC_HAS_CONTENTS | SEC_LOAD))
- as_fatal ("can't make .debug section");
- }
-}
-
#endif /* OBJ_XCOFF */
/* Turn a string in input_line_pointer into a floating point constant
@@ -4221,6 +4189,7 @@ md_apply_fix3 (fixp, valuep, seg)
value += fixp->fx_frag->fr_address + fixp->fx_where;
} /* fall through */
+ case BFD_RELOC_RVA:
case BFD_RELOC_32_PCREL:
md_number_to_chars (fixp->fx_frag->fr_literal + fixp->fx_where,
value, 4);
@@ -4249,6 +4218,9 @@ md_apply_fix3 (fixp, valuep, seg)
break;
default:
+ fprintf(stderr,
+ "Gas failure, reloc value %d\n", fixp->fx_r_type);
+ fflush(stderr);
abort ();
}
}