aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1997-03-28 18:10:09 +0000
committerIan Lance Taylor <ian@airs.com>1997-03-28 18:10:09 +0000
commitacdc7ce30e58088083421fa395dec8235c635635 (patch)
tree82742d273224bd9800afbcd5163b4322f4b19240 /gas/config
parentf0315e65fa30eaf51f213737b9a33d2a9cedad40 (diff)
downloadgdb-acdc7ce30e58088083421fa395dec8235c635635.zip
gdb-acdc7ce30e58088083421fa395dec8235c635635.tar.gz
gdb-acdc7ce30e58088083421fa395dec8235c635635.tar.bz2
* config/obj-elf.c (obj_elf_section_change_hook): New function.
* config/obj-elf.h (obj_elf_section_change_hook): Declare it. * config/tc-mips.c (s_change_sec): Call it if OBJ_ELF.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-mips.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index f6cdebe..f2b0250 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -9078,6 +9078,16 @@ s_change_sec (sec)
&& (sec == 'd' || sec == 'r'))
sec = 's';
+#ifdef OBJ_ELF
+ /* The ELF backend needs to know that we are changing sections, so
+ that .previous works correctly. We could do something like check
+ for a obj_section_change_hook macro, but that might be confusing
+ as it would not be appropriate to use it in the section changing
+ functions in read.c, since obj-elf.c intercepts those. FIXME:
+ This should be cleaner, somehow. */
+ obj_elf_section_change_hook ();
+#endif
+
mips_emit_delays (false);
switch (sec)
{