Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
GST2ASCII(1)			Hatari utilities		    GST2ASCII(1)

NAME
     gst2ascii - Filter and output Atari program symbol table as ASCII

SYNOPSIS
     gst2ascii [options] <program>

DESCRIPTION
     gst2ascii	reads  symbol table from the given Atari program, and outputs it
     in the ASCII format understood by the Hatari debugger and its profiler data
     post-processor.  Symbol tables in the traditional DRI/GST,  GNU  a.out  and
     new GCC PRGELF formats are supported.

     All  symbol addresses output by the tool are TEXT relative, so when loading
     them in Hatari debugger, one needs to give just  TEXT  as	offset	for  the
     'symbols' command.

     There  are some options for filtering the symbol table content, and the re-
     sulting ASCII output is easy to edit also by hand, in  case  other  symbols
     (e.g.  loop labels) need to be removed from it, or missing function symbols
     need to be added to it.

OPTIONS
     -a     Filter absolute (= value, not address) symbols out from the output.

     -b     Filter BSS symbols out from the output.

     -d     Filter DATA symbols out from the output.

     -f     Filter (object) file/path name symbols out from the output.

     -g     Filter GCC internal (object) symbols out from the output.

     -l     Filter local (.L*) symbols out.  Normally they are	useless  because
	    they do not have names, just numbers.

     -n     Sort symbol output by symbol names, not by their addresses.

     -s     Filter out symbols with duplicate addresses from the output.

     -t     Filter TEXT symbols out from the output.

     -w     Filter weak symbols out from the output.

     By default, same filter options are enabled as in Hatari debugger.  Prefix-
     ing option letter with '+' instead of '-', keeps the indicated symbol type,
     if  that type was disabled in the tool defaults (or by an option given ear-
     lier on the command line).

NOTES
     If you have problems, try with 'nm -n <program>' instead (Atari  native  or
     cross-compiler version). If nm works, but gst2ascii does not, please report
     a bug on it.

EXAMPLES
     Save 'program.prg' symbol table in ASCII format with local symbols filtered
     out:
	  gst2ascii -l program.prg > program.sym

     Load generated ASCII symbols file in Hatari debugger:
	  symbols program.sym TEXT DATA BSS

SEE ALSO
     hatari(1), hatari_profile(1)

AUTHOR
     Written by Eero Tamminen <oak at helsinkinet fi>.

LICENSE
     This program is free software; you can redistribute it and/or modify it un-
     der  the  terms  of the GNU General Public License as published by the Free
     Software Foundation; either version 2 of the License, or (at  your  option)
     any later version.

NO WARRANTY
     This program is distributed in the hope that it will be useful, but WITHOUT
     ANY  WARRANTY; without even the implied warranty of MERCHANTABILITY or FIT-
     NESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
     details.

Hatari				   2023-09-03			    GST2ASCII(1)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=gst2ascii&sektion=1&manpath=FreeBSD+Ports+15.1.quarterly>

home | help