Gcc compilation to delimit source file path information

I want to remove the source file path information from the executables or files .o

so that the generated kernel files do not have this information.

I don't want to strip all debug symbols. There is a flag in windows /FC

that can be used to remove the file path information. I want to know if a similar flag is present for gcc too.

-s I cannot use, as it will remove all debug information.

My gcc version is 4.4.7. centos 6.3 (64 bit)

OR

Is there any way that I can hide the absolute path information in the kernel file. I'm fine with the filenames in the main file. But I don't want to show the absolute path. For me, it only shows the absolute path for header files, not for files .c

and .cpp

.

+3


source to share





All Articles