From acdc7ce30e58088083421fa395dec8235c635635 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 28 Mar 1997 18:10:09 +0000 Subject: [PATCH] * 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. --- gas/ChangeLog | 6 ++++++ gas/config/tc-mips.c | 10 ++++++++++ 2 files changed, 16 insertions(+) diff --git a/gas/ChangeLog b/gas/ChangeLog index 9a25b15..4f437f0 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +Fri Mar 28 13:08:33 1997 Ian Lance Taylor + + * 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 * as.c (parse_args): Update copyright date in version message. 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) { -- 2.7.4