* config/obj-elf.c (obj_elf_section_change_hook): New function.
authorIan Lance Taylor <ian@airs.com>
Fri, 28 Mar 1997 18:10:09 +0000 (18:10 +0000)
committerIan Lance Taylor <ian@airs.com>
Fri, 28 Mar 1997 18:10:09 +0000 (18:10 +0000)
* config/obj-elf.h (obj_elf_section_change_hook): Declare it.
* config/tc-mips.c (s_change_sec): Call it if OBJ_ELF.

gas/ChangeLog
gas/config/tc-mips.c

index 9a25b15ed092dc5650f777df4773dcf1b158433d..4f437f03f673906871d52da940d717721ffcd2b3 100644 (file)
@@ -1,3 +1,9 @@
+Fri Mar 28 13:08:33 1997  Ian Lance Taylor  <ian@cygnus.com>
+
+       * 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.
+
 Thu Mar 27 12:23:56 1997  Ian Lance Taylor  <ian@cygnus.com>
 
        * as.c (parse_args): Update copyright date in version message.
index f6cdebea9bdd6f6916a1972f410053101111fa29..f2b025052cb21112993c9d65fae6a20657462be2 100644 (file)
@@ -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)
     {
This page took 0.038112 seconds and 4 git commands to generate.