diff options
author | Alan Modra <amodra@gmail.com> | 2023-02-01 23:11:30 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2023-02-02 08:48:29 +1030 |
commit | 2ccd2276a42ee8b8cc4b9084735dcf6a2521c2a1 (patch) | |
tree | 8c5ed1376ca686bcf7d232e14ecbd3105f068539 /gas/config/obj-aout.c | |
parent | 43e5fbd8b78848c89c1d0305396464039e452688 (diff) | |
download | binutils-gdb-2ccd2276a42ee8b8cc4b9084735dcf6a2521c2a1.tar.gz |
gas obj_end
Provide a way for config/obj-* to clean up at end of assembly, and do
so for ELF.
* obj.h (struct format_ops): Add "end".
* config/obj-aout.c (aout_format_ops): Init new field.
* config/obj-coff.c (coff_format_ops): Likewise.
* config/obj-ecoff.c (ecoff_format_ops): Likewise.
* config/obj-elf.c (elf_format_ops): Likewise.
(elf_begin): Move later in file. Clear some more variables.
(comment_section): Make file scope.
(free_section_idx): Rewrite.
(elf_adjust_symtab): Expand str_htab_create call and use
free_section_idx as delete function.
(elf_frob_file_after_relocs): Don't clean up groups.indexes here.
(elf_end): New function.
* config/obj-elf.h (obj_end): Define.
* config/obj-multi.h (obj_end): Define.
* output-file.c (output_file_close): Call obj_end.
Diffstat (limited to 'gas/config/obj-aout.c')
-rw-r--r-- | gas/config/obj-aout.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gas/config/obj-aout.c b/gas/config/obj-aout.c index f413e9139bb..14eb9f96aa6 100644 --- a/gas/config/obj-aout.c +++ b/gas/config/obj-aout.c @@ -297,6 +297,7 @@ const struct format_ops aout_format_ops = 1, /* dfl_leading_underscore. */ 0, /* emit_section_symbols. */ 0, /* begin. */ + 0, /* end. */ 0, /* app_file. */ obj_aout_frob_symbol, 0, /* frob_file. */ |