Pass -s flag to linker.
authorSebastian Buchwald <Sebastian.Buchwald@kit.edu>
Tue, 13 Sep 2011 07:45:39 +0000 (09:45 +0200)
committerSebastian Buchwald <Sebastian.Buchwald@kit.edu>
Tue, 13 Sep 2011 07:45:39 +0000 (09:45 +0200)
main.c

diff --git a/main.c b/main.c
index 98ceb39..85964f0 100644 (file)
--- a/main.c
+++ b/main.c
@@ -695,6 +695,7 @@ static void print_help_linker(void)
 {
        put_help("-l LIBRARY",               "");
        put_help("-L PATH",                  "");
+       put_help("-s",                       "Do not produce symbol table and relocation information");
        put_help("-shared",                  "Produce a shared library");
        put_help("-static",                  "Produce statically linked binary");
        put_help("-Wl,OPTION",               "Pass option directly to linker");
@@ -1139,6 +1140,8 @@ int main(int argc, char **argv)
                                mode = CompileAssemble;
                        } else if (SINGLE_OPTION('E')) {
                                mode = PreprocessOnly;
+                       } else if (SINGLE_OPTION('s')) {
+                               add_flag(&ldflags_obst, "-s");
                        } else if (SINGLE_OPTION('S')) {
                                mode = Compile;
                        } else if (option[0] == 'O') {