SARG wrote:Maybe by adding : --strip-debug (for the linker) with the g option
--strip-debug -> Omit debugger symbol information (but not all symbols) from the output file.
Thank you, it looks like this works. I was able to accomplish what I wanted with the following line:
Code: Select all
$ fbc -g -Wl --strip-debug foobar.bas
$ file foobar
foobar: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, not stripped
Interestingly, it looks like the "
-g" option is not necessary (I suppose the "
-Wl" option alone is enough to redefine the linker flags and eliminate the default "
--strip-all"):
Code: Select all
$ fbc -Wl --strip-debug foobar.bas
$ file foobar
foobar: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, not stripped