From: Ian Lance Taylor Date: Fri, 28 Mar 1997 18:10:09 +0000 (+0000) Subject: * config/obj-elf.c (obj_elf_section_change_hook): New function. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=acdc7ce30e58088083421fa395dec8235c635635;p=binutils-gdb.git * 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. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 9a25b15ed09..4f437f03f67 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 f6cdebea9bd..f2b025052cb 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) {