Home | History | Annotate | Download | only in src

Lines Matching refs:arg

190 static error_t parse_opt_1st (int key, char *arg, struct argp_state *state);
191 static error_t parse_opt_2nd (int key, char *arg, struct argp_state *state);
256 static void parse_z_option (const char *arg);
257 static void parse_z_option_2 (const char *arg);
258 static void parse_B_option (const char *arg);
259 static void parse_B_option_2 (const char *arg);
504 parse_opt_1st (int key, char *arg, struct argp_state *state)
509 parse_B_option (arg);
513 linker_script = arg;
531 ld_state.soname = arg;
540 ld_state.interp = arg;
546 emulation = arg;
550 if (arg[1] == '\0' && (arg[0] == 'y' || arg[0] == 'Y'))
552 else if (arg[1] == '\0' && (arg[0] == 'n' || arg[0] == 'N'))
555 error (EXIT_FAILURE, 0, gettext ("unknown option `-%c %s'"), 'Q', arg);
581 parse_z_option (arg);
587 ld_state.pagesize = strtoul (arg, &endp, 0);
598 arg);
606 add_rxxpath (&ld_state.rpath, arg);
610 add_rxxpath (&ld_state.rpath_link, arg);
614 add_rxxpath (&ld_state.runpath, arg);
618 add_rxxpath (&ld_state.runpath_link, arg);
627 if (arg == NULL)
657 newp->name = arg;
688 parse_opt_2nd (int key, char *arg, struct argp_state *state)
696 parse_B_option_2 (arg);
700 ld_state.entry = arg;
711 ld_state.outfname = arg;
715 if (arg == NULL)
720 unsigned long int level = strtoul (arg, &endp, 10);
723 error (0, 0, gettext ("Invalid optimization level `%s'"), arg);
747 parse_z_option_2 (arg);
751 read_version_script (arg);
756 ld_new_searchdir (arg);
801 last_file = ld_new_inputfile (arg,
884 parse_z_option (const char *arg)
886 if (strcmp (arg, "nodefaultlib") == 0
890 else if (strcmp (arg, "muldefs") == 0)
892 else if (strcmp (arg, "nodefs") == 0)
894 else if (strcmp (arg, "defs") == 0)
896 else if (strcmp (arg, "now") == 0)
900 else if (strcmp (arg, "origin") == 0)
904 else if (strcmp (arg, "nodelete") == 0
908 else if (strcmp (arg, "initfirst") == 0)
910 else if (strcmp (arg, "nodlopen") == 0
914 else if (strcmp (arg, "ignore") == 0)
916 else if (strcmp (arg, "record") == 0)
918 else if (strcmp (arg, "systemlibrary") == 0)
920 else if (strcmp (arg, "allextract") != 0
921 && strcmp (arg, "defaultextract") != 0
922 && strcmp (arg, "weakextract") != 0
923 && strcmp (arg, "lazyload") != 0
924 && strcmp (arg, "nolazyload") != 0)
925 error (0, 0, gettext ("unknown option `-%c %s'"), 'z', arg);
930 parse_z_option_2 (const char *arg)
932 if (strcmp (arg, "allextract") == 0)
934 else if (strcmp (arg, "defaultextract") == 0)
936 else if (strcmp (arg, "weakextract") == 0)
938 else if (strcmp (arg, "lazyload") == 0)
940 else if (strcmp (arg, "nolazyload") == 0)
947 parse_B_option (const char *arg)
949 if (strcmp (arg, "local") == 0)
951 else if (strcmp (arg, "symbolic") != 0
952 && strcmp (arg, "static") != 0
953 && strcmp (arg, "dynamic") != 0)
954 error (0, 0, gettext ("unknown option '-%c %s'"), 'B', arg);
961 parse_B_option_2 (const char *arg)
963 if (strcmp (arg, "static") == 0)
965 else if (strcmp (arg, "dynamic") == 0)
967 else if (strcmp (arg, "symbolic") == 0