]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gas: drop unused fields from struct segment_info_struct
authorJan Beulich <jbeulich@suse.com>
Fri, 1 Dec 2023 07:29:33 +0000 (08:29 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 1 Dec 2023 07:29:33 +0000 (08:29 +0100)
user_stuff, dot, and lineno_list_{head,tail} have no users (left), while
bfd_section was only ever written.

gas/subsegs.c
gas/subsegs.h

index ae42b4e76d9bf363ce91e9fa99a9ac2bd27fd653..a74db52637a2d266c946c1a1ebe9db0cd1e805bd 100644 (file)
@@ -61,7 +61,6 @@ alloc_seginfo (segT seg)
 
   seginfo = obstack_alloc (&notes, sizeof (*seginfo));
   memset (seginfo, 0, sizeof (*seginfo));
-  seginfo->bfd_section = seg;
   bfd_set_section_userdata (seg, seginfo);
 }
 /*
index ace0657bdfbc95a9b6d7e0bc295b91fd9da2ccab..2bc7adacc565c61b2aefb6d6addca11fab09a365 100644 (file)
@@ -71,23 +71,13 @@ typedef struct segment_info_struct {
      there are frags.  */
   unsigned int bss : 1;
 
-  int user_stuff;
-
   /* Fixups for this segment.  This is only valid after the frchains
      are run together.  */
   fixS *fix_root;
   fixS *fix_tail;
 
-  symbolS *dot;
-
-  struct lineno_list *lineno_list_head;
-  struct lineno_list *lineno_list_tail;
-
-  /* Which BFD section does this gas segment correspond to?  */
-  asection *bfd_section;
-
   /* NULL, or pointer to the gas symbol that is the section symbol for
-     this section.  sym->bsym and bfd_section->symbol should be the same.  */
+     this section.  */
   symbolS *sym;
 
   /* Used by dwarf2dbg.c for this section's line table entries.  */