mirror of
https://git.rtems.org/rtems-tools/
synced 2025-10-24 04:23:46 +08:00
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.
This commit is contained in:
@@ -109,6 +109,7 @@ usage (int exit_code)
|
|||||||
<< " -E prefix : the RTEMS tool prefix (also --exec-prefix)" << std::endl
|
<< " -E prefix : the RTEMS tool prefix (also --exec-prefix)" << std::endl
|
||||||
<< " -a march : machine architecture (also --march)" << std::endl
|
<< " -a march : machine architecture (also --march)" << std::endl
|
||||||
<< " -c cpu : machine architecture's CPU (also --mcpu)" << std::endl
|
<< " -c cpu : machine architecture's CPU (also --mcpu)" << std::endl
|
||||||
|
<< " -Wl,opts : link compatible flags, ignored" << std::endl
|
||||||
<< "Output Formats:" << std::endl
|
<< "Output Formats:" << std::endl
|
||||||
<< " rap - RTEMS application (LZ77, single image)" << std::endl
|
<< " rap - RTEMS application (LZ77, single image)" << std::endl
|
||||||
<< " elf - ELF application (script, ELF files)" << std::endl
|
<< " elf - ELF application (script, ELF files)" << std::endl
|
||||||
@@ -186,7 +187,7 @@ main (int argc, char* argv[])
|
|||||||
|
|
||||||
while (true)
|
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)
|
if (opt < 0)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -273,6 +274,10 @@ main (int argc, char* argv[])
|
|||||||
base_name = optarg;
|
base_name = optarg;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'W':
|
||||||
|
/* ignore linker compatiable flags */
|
||||||
|
break;
|
||||||
|
|
||||||
case '?':
|
case '?':
|
||||||
usage (3);
|
usage (3);
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user