[rtems-tools commit] linkers: Fix the -O option handling in rtems-execinfo

Chris Johns chrisj at rtems.org
Thu Jan 10 01:41:06 UTC 2019


Module:    rtems-tools
Branch:    master
Commit:    3fab1f51102c0b92712cccd86a595eff8b2199fb
Changeset: http://git.rtems.org/rtems-tools/commit/?id=3fab1f51102c0b92712cccd86a595eff8b2199fb

Author:    Chris Johns <chrisj at rtems.org>
Date:      Thu Jan 10 12:40:52 2019 +1100

linkers: Fix the -O option handling in rtems-execinfo

---

 linkers/rtems-exeinfo.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/linkers/rtems-exeinfo.cpp b/linkers/rtems-exeinfo.cpp
index 018c732..eead6db 100644
--- a/linkers/rtems-exeinfo.cpp
+++ b/linkers/rtems-exeinfo.cpp
@@ -757,6 +757,7 @@ static struct option rld_opts[] = {
   { "sections",    no_argument,            NULL,           'S' },
   { "init",        no_argument,            NULL,           'I' },
   { "fini",        no_argument,            NULL,           'F' },
+  { "objects",     no_argument,            NULL,           'O' },
   { "inlined",     no_argument,            NULL,           'i' },
   { "dwarf",       no_argument,            NULL,           'D' },
   { NULL,          0,                      NULL,            0 }
@@ -848,7 +849,7 @@ main (int argc, char* argv[])
 
     while (true)
     {
-      int opt = ::getopt_long (argc, argv, "hvVMaSIFiD", rld_opts, NULL);
+      int opt = ::getopt_long (argc, argv, "hvVMaSIFOiD", rld_opts, NULL);
       if (opt < 0)
         break;
 



More information about the vc mailing list