1*184b2d41Schristos /* Copyright (C) 2007-2020 Free Software Foundation, Inc.
297ec5308Schristos 
397ec5308Schristos    This file is part of BFD, the Binary File Descriptor library.
497ec5308Schristos 
597ec5308Schristos    This program is free software; you can redistribute it and/or modify
697ec5308Schristos    it under the terms of the GNU General Public License as published by
797ec5308Schristos    the Free Software Foundation; either version 3 of the License, or
897ec5308Schristos    (at your option) any later version.
997ec5308Schristos 
1097ec5308Schristos    This program is distributed in the hope that it will be useful,
1197ec5308Schristos    but WITHOUT ANY WARRANTY; without even the implied warranty of
1297ec5308Schristos    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1397ec5308Schristos    GNU General Public License for more details.
1497ec5308Schristos 
1597ec5308Schristos    You should have received a copy of the GNU General Public License
1697ec5308Schristos    along with this program; if not, write to the Free Software
1797ec5308Schristos    Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
1897ec5308Schristos    MA 02110-1301, USA.  */
1997ec5308Schristos 
2097ec5308Schristos /* Linux writes the task structure at the end of the core file.  Currently it
2197ec5308Schristos    is 2912 bytes.  It is possible that this should be a pickier check, but
2297ec5308Schristos    we should probably not be too picky (the size of the task structure might
2397ec5308Schristos    vary, and if it's not the length we expect it to be, it doesn't affect
2497ec5308Schristos    our ability to process the core file).  So allow 0-4096 extra bytes at
2597ec5308Schristos    the end.  */
2697ec5308Schristos 
2797ec5308Schristos #define TRAD_CORE_EXTRA_SIZE_ALLOWED 4096
28