diff -r 1e9323e7ec88 -r 837f1337c59b gcc.rst --- a/gcc.rst Sat Feb 10 01:28:53 2018 +0200 +++ b/gcc.rst Sat Feb 10 01:30:24 2018 +0200 @@ -11,30 +11,30 @@ STRIP_DEAD_CODE = -Wl,-static -fvtable-gc -fdata-sections -ffunction-sections -Wl,--gc-sections -Wl,-s - -Wl,-static - Link against static libraries. Required for dead-code - elimination. +``-Wl,-static`` + Link against static libraries. Required for dead-code + elimination. - -fvtable-gc - C++ virtual method table instrumented with garbage collection - information for the linker. +``-fvtable-gc`` + C++ virtual method table instrumented with garbage collection + information for the linker. - -fdata-sections - Keeps data in separate data sections, so they can be discarded - if unused. +``-fdata-sections`` + Keeps data in separate data sections, so they can be discarded + if unused. - -ffunction-sections - Keeps funcitons in separate data sections, so they can be - discarded if unused. +``-ffunction-sections`` + Keeps funcitons in separate data sections, so they can be + discarded if unused. - -Wl,--gc-sections - Tell the linker to garbage collect and discard unused - sections. +``-Wl,--gc-sections`` + Tell the linker to garbage collect and discard unused + sections. - -s - Strip the debug information, so as to make the code as small - as possible. (I presume that you'd want to do this in a - dead-code removal build.) +``-s`` + Strip the debug information, so as to make the code as small + as possible. (I presume that you'd want to do this in a + dead-code removal build.) Map file ======== @@ -54,6 +54,7 @@ Default search path =================== +:: $ echo | gcc -v -x c -E - @@ -62,7 +63,7 @@ programs: ... libraries: ... -Use -### in actual invoking:: +Use ``-###`` in actual invoking:: $ gcc -### -o foo foo.c