* 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.
This commit is contained in:
parent
f0315e65fa
commit
acdc7ce30e
2 changed files with 16 additions and 0 deletions
|
@ -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.
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue