aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2002-05-22 16:46:27 +0000
committerNick Clifton <nickc@redhat.com>2002-05-22 16:46:27 +0000
commit76feaaf3597dd644456717109f9268006c24bb6c (patch)
tree0e433203d04e7399d8fb2597c068e21ceaad344f
parent1080e97d0593d0cdadf9ba464b6cf8c588a40a45 (diff)
downloadgdb-76feaaf3597dd644456717109f9268006c24bb6c.zip
gdb-76feaaf3597dd644456717109f9268006c24bb6c.tar.gz
gdb-76feaaf3597dd644456717109f9268006c24bb6c.tar.bz2
COFF: Dump literal pool when changing sections.
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-arm.c11
2 files changed, 12 insertions, 4 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 331a179..8425bc6 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
+
+ * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
+ as ELF builds.
+
2002-05-22 H.J. Lu <hjl@gnu.org>
* dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c
index a14e91e..b76ee21 100644
--- a/gas/config/tc-arm.c
+++ b/gas/config/tc-arm.c
@@ -2063,8 +2063,8 @@ static void s_thumb_func PARAMS ((int));
static void s_thumb_set PARAMS ((int));
static void arm_s_text PARAMS ((int));
static void arm_s_data PARAMS ((int));
-#ifdef OBJ_ELF
static void arm_s_section PARAMS ((int));
+#ifdef OBJ_ELF
static void s_arm_elf_cons PARAMS ((int));
#endif
@@ -2088,11 +2088,11 @@ const pseudo_typeS md_pseudo_table[] =
/* Allow for the effect of section changes. */
{ "text", arm_s_text, 0 },
{ "data", arm_s_data, 0 },
-#ifdef OBJ_ELF
{ "section", arm_s_section, 0 },
{ "section.s", arm_s_section, 0 },
{ "sect", arm_s_section, 0 },
{ "sect.s", arm_s_section, 0 },
+#ifdef OBJ_ELF
{ "word", s_arm_elf_cons, 4 },
{ "long", s_arm_elf_cons, 4 },
{ "file", dwarf2_directive_file, 0 },
@@ -2585,16 +2585,19 @@ arm_s_data (ignore)
#endif
}
-#ifdef OBJ_ELF
static void
arm_s_section (ignore)
int ignore;
{
s_ltorg (0);
+#ifdef OBJ_ELF
obj_elf_section (ignore);
-}
#endif
+#ifdef OBJ_COFF
+ obj_coff_section (ignore);
+#endif
+}
static void
opcode_select (width)