elf/x86: Issue an error on discarded output .plt section
[binutils-gdb.git] / gdb / gdb_obstack.h
index fb9295f5020a27c7c1364d526acb98a0b8c16b41..f743bdd3eb1282680e7dfa9be9014eb549692474 100644 (file)
@@ -1,6 +1,6 @@
 /* Obstack wrapper for GDB.
 
-   Copyright (C) 2002-2020 Free Software Foundation, Inc.
+   Copyright (C) 2002-2021 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -125,6 +125,8 @@ struct auto_obstack : obstack
   ~auto_obstack ()
   { obstack_free (this, NULL); }
 
+  DISABLE_COPY_AND_ASSIGN (auto_obstack);
+
   /* Free all memory in the obstack but leave it valid for further
      allocation.  */
   void clear ()