aboutsummaryrefslogtreecommitdiff
path: root/gas/as.c
diff options
context:
space:
mode:
authorTerry Guo <terry.guo@arm.com>2014-09-29 10:12:10 +0800
committerTerry Guo <terry.guo@arm.com>2014-09-29 10:12:10 +0800
commitd98b0e2bf6120f50db57ff68eb9b2e00a9a26154 (patch)
treedf624b46ff896cff7e7cadc23c8ef6dabce146df /gas/as.c
parent1b7ee89b52d48adf343e6ffa8808ff238b8cfb9d (diff)
downloadgdb-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.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/gas/as.c b/gas/as.c
index 32459a8..85a04a3 100644
--- a/gas/as.c
+++ b/gas/as.c
@@ -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)