diff options
author | Peng Fan <van.freenix@gmail.com> | 2013-07-26 17:45:01 +0800 |
---|---|---|
committer | Peng Fan <van.freenix@gmail.com> | 2013-07-26 17:45:01 +0800 |
commit | 39f48c9047be57df78b95d660b568283afb46da0 (patch) | |
tree | 174fb48ecaf840e4af346c1bdf20ffe58f16ecf7 /linkers/rtems-ld.cpp | |
parent | 76d3b8962c9e0164941d1b6a47a4b6a716aca700 (diff) |
Add object file details to RAP format
This change added the object file details to the RAP format so aid debugging
support. The information can be optionally stripped for production images
not needed this information if space is an issue,with '--rap-strip' assigned
to rtems-ld.
Diffstat (limited to 'linkers/rtems-ld.cpp')
-rw-r--r-- | linkers/rtems-ld.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/linkers/rtems-ld.cpp b/linkers/rtems-ld.cpp index e0dd332..d5bc1de 100644 --- a/linkers/rtems-ld.cpp +++ b/linkers/rtems-ld.cpp @@ -38,6 +38,7 @@ #include <rld.h> #include <rld-cc.h> +#include <rld-rap.h> #include <rld-outputter.h> #include <rld-process.h> #include <rld-resolver.h> @@ -69,6 +70,7 @@ static struct option rld_opts[] = { { "exec-prefix", required_argument, NULL, 'E' }, { "march", required_argument, NULL, 'a' }, { "mcpu", required_argument, NULL, 'c' }, + { "rap-strip", no_argument, NULL, 'S' }, { NULL, 0, NULL, 0 } }; @@ -109,6 +111,7 @@ usage (int exit_code) << " -E prefix : the RTEMS tool prefix (also --exec-prefix)" << std::endl << " -a march : machine architecture (also --march)" << std::endl << " -c cpu : machine architecture's CPU (also --mcpu)" << std::endl + << " -S : do not include file details (also --rap-strip)" << std::endl << " -Wl,opts : link compatible flags, ignored" << std::endl << "Output Formats:" << std::endl << " rap - RTEMS application (LZ77, single image)" << std::endl @@ -274,6 +277,10 @@ main (int argc, char* argv[]) base_name = optarg; break; + case 'S': + rld::rap::add_obj_details = false; + break; + case 'W': /* ignore linker compatiable flags */ break; |