X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=ld%2Fldctor.h;h=6efe349bb833b9e3d9a66a830a84e9092ac77c0f;hb=43e05cd4f48b550023819d823fec02abf54e26d3;hp=27edc61133b1b402a84a1c6dbbcd6086da731e35;hpb=aa820537ead0135a7c38c619039dce8a6fc74ed1;p=binutils-gdb.git diff --git a/ld/ldctor.h b/ld/ldctor.h index 27edc61133b..6efe349bb83 100644 --- a/ld/ldctor.h +++ b/ld/ldctor.h @@ -1,6 +1,5 @@ /* ldctor.h - linker constructor support - Copyright 1991, 1992, 1993, 1994, 1995, 1998, 2000, 2002, 2003, 2005, - 2007, 2008 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. */