X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gold%2Fsymtab.h;h=913ccdebca1c64d19bdd36cd53e68c3b3140632f;hb=f5a7c406b1975cde626efed526960f2cf1bdaceb;hp=089e156b452c82b1c049dfc846076cea6e530ea6;hpb=890d155592e66dc01fc4a9affba806c4e9fc36ba;p=deliverable%2Fbinutils-gdb.git diff --git a/gold/symtab.h b/gold/symtab.h index 089e156b45..913ccdebca 100644 --- a/gold/symtab.h +++ b/gold/symtab.h @@ -1,6 +1,6 @@ // symtab.h -- the gold symbol table -*- C++ -*- -// Copyright (C) 2006-2018 Free Software Foundation, Inc. +// Copyright (C) 2006-2020 Free Software Foundation, Inc. // Written by Ian Lance Taylor . // This file is part of gold. @@ -914,7 +914,7 @@ class Symbol // Instances of this class should always be created at a specific // size. Symbol() - { memset(this, 0, sizeof *this); } + { memset(static_cast(this), 0, sizeof *this); } // Initialize the general fields. void @@ -1580,6 +1580,10 @@ class Symbol_table saw_undefined() const { return this->saw_undefined_; } + void + set_has_gnu_output() + { this->has_gnu_output_ = true; } + // Allocate the common symbols void allocate_commons(Layout*, Mapfile*); @@ -1981,6 +1985,8 @@ class Symbol_table // The number of global dynamic symbols (including forced-local symbols), // or 0 if none. unsigned int dynamic_count_; + // Set if a STT_GNU_IFUNC or STB_GNU_UNIQUE symbol will be output. + bool has_gnu_output_; // The symbol hash table. Symbol_table_type table_; // A pool of symbol names. This is used for all global symbols.