I want to remove source code file path information from the executable or .o
files so that generated core files will not have that information.
I don't want to strip all the debug symbols.
In windows there is a flag /FC
which can be used to remove file path information.
I want to know if similar flag is present for gcc too.
-s i can't use since it will remove all the debugging symbol information.
My gcc version is 4.4.7. centos 6.3 (64 bit)
OR
Is there any way so that i can hide the absolute path information in core file. I am okay with the file names in core file. But i don't want to show absolute path.
For me It is showing absolute path only for header files not for .c
and .cpp
files.