Output sdb-format symbol table information from GNU compiler. Copyright (C) 1988-2013 Free Software Foundation, Inc.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.
GCC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see http://www.gnu.org/licenses/. mike@.nosp@m.tred.nosp@m.ysvr..nosp@m.Tred.nosp@m.ydev..nosp@m.Unis.nosp@m.ys.CO.nosp@m.M says: I modified the struct.c example and have a nm of a .o resulting from the AT&T C compiler. From the example below I would conclude the following:
- All .defs from structures are emitted as scanned. The example below clearly shows the symbol table entries for BoxRec2 are after the first function.
- All functions and their locals (including statics) are emitted as scanned.
- All nested unnamed union and structure .defs must be emitted before the structure in which they are nested. The AT&T assembler is a one pass beast as far as symbolics are concerned.
- All structure .defs are emitted before the typedefs that refer to them.
- All top level static and external variable definitions are moved to the end of file with all top level statics occurring first before externs.
- All undefined references are at the end of the file.