diff options
author | Terry Guo <terry.guo@arm.com> | 2014-09-29 10:12:10 +0800 |
---|---|---|
committer | Terry Guo <terry.guo@arm.com> | 2014-09-29 10:12:10 +0800 |
commit | d98b0e2bf6120f50db57ff68eb9b2e00a9a26154 (patch) | |
tree | df624b46ff896cff7e7cadc23c8ef6dabce146df /gas/as.c | |
parent | 1b7ee89b52d48adf343e6ffa8808ff238b8cfb9d (diff) | |
download | gdb-d98b0e2bf6120f50db57ff68eb9b2e00a9a26154.zip gdb-d98b0e2bf6120f50db57ff68eb9b2e00a9a26154.tar.gz gdb-d98b0e2bf6120f50db57ff68eb9b2e00a9a26154.tar.bz2 |
2014-09-29 Terry Guo <terry.guo@arm.com>
* as.c (create_obj_attrs_section): Move it and call it from ...
* write.c (create_obj_attrs_section): ... here.
(subsegs_finish_section): Refactored.
Diffstat (limited to 'gas/as.c')
-rw-r--r-- | gas/as.c | 31 |
1 files changed, 0 insertions, 31 deletions
@@ -1107,32 +1107,6 @@ perform_an_assembly_pass (int argc, char ** argv) read_a_source_file (""); } -#ifdef OBJ_ELF -static void -create_obj_attrs_section (void) -{ - segT s; - char *p; - offsetT size; - const char *name; - - size = bfd_elf_obj_attr_size (stdoutput); - if (size) - { - name = get_elf_backend_data (stdoutput)->obj_attrs_section; - if (!name) - name = ".gnu.attributes"; - s = subseg_new (name, 0); - elf_section_type (s) - = get_elf_backend_data (stdoutput)->obj_attrs_section_type; - bfd_set_section_flags (stdoutput, s, SEC_READONLY | SEC_DATA); - frag_now_fix (); - p = frag_more (size); - bfd_elf_set_obj_attr_contents (stdoutput, (bfd_byte *)p, size); - } -} -#endif - int main (int argc, char ** argv) @@ -1257,11 +1231,6 @@ main (int argc, char ** argv) md_end (); #endif -#ifdef OBJ_ELF - if (IS_ELF) - create_obj_attrs_section (); -#endif - #if defined OBJ_ELF || defined OBJ_MAYBE_ELF if ((flag_execstack || flag_noexecstack) && OUTPUT_FLAVOR == bfd_target_elf_flavour) |