summaryrefslogtreecommitdiff
path: root/linkers/rtems-ld.cpp
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2013-03-01 13:58:56 +1100
committerChris Johns <chrisj@rtems.org>2013-03-01 13:58:56 +1100
commit69a123b71891df04747276387339f14e0535e4e6 (patch)
tree260d1b168e43e0427756658b2f335c681bfa3859 /linkers/rtems-ld.cpp
parent6c4218becf5ce542d11b036d63f66a2f4817db7f (diff)
Support the gcc option '-Wl'.
Support and ignore the '-Wl,options' command line option to allow build system that use this flag to call the RTEMS linker.
Diffstat (limited to 'linkers/rtems-ld.cpp')
-rw-r--r--linkers/rtems-ld.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/linkers/rtems-ld.cpp b/linkers/rtems-ld.cpp
index eebc5a0..e0dd332 100644
--- a/linkers/rtems-ld.cpp
+++ b/linkers/rtems-ld.cpp
@@ -109,6 +109,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
+ << " -Wl,opts : link compatible flags, ignored" << std::endl
<< "Output Formats:" << std::endl
<< " rap - RTEMS application (LZ77, single image)" << std::endl
<< " elf - ELF application (script, ELF files)" << std::endl
@@ -186,7 +187,7 @@ main (int argc, char* argv[])
while (true)
{
- int opt = ::getopt_long (argc, argv, "hvwVMnb:E:o:O:L:l:a:c:e:d:u:C:", rld_opts, NULL);
+ int opt = ::getopt_long (argc, argv, "hvwVMnb:E:o:O:L:l:a:c:e:d:u:C:W:", rld_opts, NULL);
if (opt < 0)
break;
@@ -273,6 +274,10 @@ main (int argc, char* argv[])
base_name = optarg;
break;
+ case 'W':
+ /* ignore linker compatiable flags */
+ break;
+
case '?':
usage (3);
break;