gdb: fix vfork with multiple threads
[deliverable/binutils-gdb.git] / ld / ldctor.h
index 6e70a091ce6cc9a25eb08bfa680100a02e4dd389..6efe349bb833b9e3d9a66a830a84e9092ac77c0f 100644 (file)
@@ -1,6 +1,5 @@
 /* ldctor.h - linker constructor support
-   Copyright 1991, 1992, 1993, 1994, 1995, 1998, 2000, 2002, 2003,
-   2007  Free Software Foundation, Inc.
+   Copyright (C) 1991-2021 Free Software Foundation, Inc.
 
    This file is part of the GNU Binutils.
 
@@ -28,7 +27,7 @@ extern lang_statement_list_type constructor_list;
 /* Whether the constructors should be sorted.  Note that this is
    global for the entire link; we assume that there is only a single
    CONSTRUCTORS command in the linker script.  */
-extern bfd_boolean constructors_sorted;
+extern bool constructors_sorted;
 
 /* We keep a list of these structures for each set we build.  */
 
@@ -41,7 +40,10 @@ struct set_info {
 };
 
 struct set_element {
-  struct set_element *next;            /* Next element.  */
+  union {
+    struct set_element *next;          /* Next element.  */
+    long idx;
+  } u;
   const char *name;                    /* Name in set (may be NULL).  */
   asection *section;                   /* Section of value in set.  */
   bfd_vma value;                       /* Value in set.  */
This page took 0.022683 seconds and 4 git commands to generate.