Lines Matching refs:arg

204 static error_t parse_opt_1st (int key, char *arg, struct argp_state *state);
205 static error_t parse_opt_2nd (int key, char *arg, struct argp_state *state);
267 static void parse_z_option (const char *arg);
268 static void parse_z_option_2 (const char *arg);
269 static void parse_B_option (const char *arg);
270 static void parse_B_option_2 (const char *arg);
527 valid_hexarg (const char *arg)
529 if (strncasecmp (arg, "0x", 2) != 0)
532 arg += 2;
535 if (isxdigit (arg[0]) && isxdigit (arg[1]))
537 arg += 2;
538 if (arg[0] == '-' || arg[0] == ':')
539 ++arg;
544 while (*arg != '\0');
552 parse_opt_1st (int key, char *arg,
558 parse_B_option (arg);
562 linker_script = arg;
580 ld_state.soname = arg;
589 ld_state.interp = arg;
595 emulation = arg;
599 if (arg[1] == '\0' && (arg[0] == 'y' || arg[0] == 'Y'))
601 else if (arg[1] == '\0' && (arg[0] == 'n' || arg[0] == 'N'))
604 error (EXIT_FAILURE, 0, gettext ("unknown option `-%c %s'"), 'Q', arg);
630 parse_z_option (arg);
636 ld_state.pagesize = strtoul (arg, &endp, 0);
647 arg);
655 add_rxxpath (&ld_state.rpath, arg);
659 add_rxxpath (&ld_state.rpath_link, arg);
663 add_rxxpath (&ld_state.runpath, arg);
667 add_rxxpath (&ld_state.runpath_link, arg);
680 if (strcmp (arg, "gnu") == 0)
682 else if (strcmp (arg, "both") == 0)
684 else if (strcmp (arg, "sysv") == 0)
687 error (EXIT_FAILURE, 0, gettext ("invalid hash style '%s'"), arg);
691 if (arg == NULL)
693 else if (strcmp (arg, "uuid") != 0
694 && strcmp (arg, "md5") != 0
695 && strcmp (arg, "sha1") != 0
696 && !valid_hexarg (arg))
697 error (EXIT_FAILURE, 0, gettext ("invalid build-ID style '%s'"), arg);
699 ld_state.build_id = arg;
703 if (arg == NULL)
735 newp->name = arg;
766 parse_opt_2nd (int key, char *arg,
775 parse_B_option_2 (arg);
779 ld_state.entry = arg;
790 ld_state.outfname = arg;
794 if (arg == NULL)
799 unsigned long int level = strtoul (arg, &endp, 10);
802 error (0, 0, gettext ("Invalid optimization level `%s'"), arg);
833 parse_z_option_2 (arg);
837 read_version_script (arg);
842 ld_new_searchdir (arg);
887 last_file = ld_new_inputfile (arg,
970 parse_z_option (const char *arg)
972 if (strcmp (arg, "nodefaultlib") == 0
976 else if (strcmp (arg, "muldefs") == 0)
978 else if (strcmp (arg, "nodefs") == 0)
980 else if (strcmp (arg, "defs") == 0)
982 else if (strcmp (arg, "now") == 0)
986 else if (strcmp (arg, "origin") == 0)
990 else if (strcmp (arg, "nodelete") == 0
994 else if (strcmp (arg, "initfirst") == 0)
996 else if (strcmp (arg, "nodlopen") == 0
1000 else if (strcmp (arg, "systemlibrary") == 0)
1002 else if (strcmp (arg, "execstack") == 0)
1004 else if (strcmp (arg, "noexecstack") == 0)
1006 else if (strcmp (arg, "allextract") != 0
1007 && strcmp (arg, "defaultextract") != 0
1008 && strcmp (arg, "weakextract") != 0
1009 && strcmp (arg, "lazyload") != 0
1010 && strcmp (arg, "nolazyload") != 0
1011 && strcmp (arg, "ignore") != 0
1012 && strcmp (arg, "record") != 0)
1013 error (0, 0, gettext ("unknown option `-%c %s'"), 'z', arg);
1018 parse_z_option_2 (const char *arg)
1020 if (strcmp (arg, "allextract") == 0)
1022 else if (strcmp (arg, "defaultextract") == 0)
1024 else if (strcmp (arg, "weakextract") == 0)
1026 else if (strcmp (arg, "lazyload") == 0)
1028 else if (strcmp (arg, "nolazyload") == 0)
1030 else if (strcmp (arg, "ignore") == 0)
1032 else if (strcmp (arg, "record") == 0)
1039 parse_B_option (const char *arg)
1041 if (strcmp (arg, "local") == 0)
1043 else if (strcmp (arg, "symbolic") != 0
1044 && strcmp (arg, "static") != 0
1045 && strcmp (arg, "dynamic") != 0)
1046 error (0, 0, gettext ("unknown option '-%c %s'"), 'B', arg);
1053 parse_B_option_2 (const char *arg)
1055 if (strcmp (arg, "static") == 0)
1057 else if (strcmp (arg, "dynamic") == 0)
1059 else if (strcmp (arg, "symbolic") == 0