diff options
| author | Ulrich Drepper <[email protected]> | 2008-02-01 18:05:21 +0000 |
|---|---|---|
| committer | Ulrich Drepper <[email protected]> | 2008-02-01 18:05:21 +0000 |
| commit | c54785af87adcac067f90b1dbc238c29062cf683 (patch) | |
| tree | 70b62365a10a1fae228fae5fe96073586eca97b1 /src/ld.c | |
| parent | 16303e82287f350d63672b3c898dc1d31a90c5d4 (diff) | |
Implement SHA1 build-id handling in ld.
Diffstat (limited to 'src/ld.c')
| -rw-r--r-- | src/ld.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -172,7 +172,7 @@ Default rules of extracting from archive; weak references are not enough."), { "hash-style", ARGP_hash_style, "STYLE", 0, N_("Set hash style to sysv, gnu or both."), 0 }, { "build-id", ARGP_build_id, "STYLE", OPTION_ARG_OPTIONAL, - N_("Generate build ID note (md5 (default), uuid)."), 0 }, + N_("Generate build ID note (md5, sha1 (default), uuid)."), 0 }, { NULL, 0, NULL, 0, N_("Linker Operation Control:"), 0 }, { "verbose", 'v', NULL, 0, N_("Verbose messages."), 0 }, @@ -688,9 +688,10 @@ parse_opt_1st (int key, char *arg, case ARGP_build_id: if (arg == NULL) - ld_state.build_id = "md5"; + ld_state.build_id = "sha1"; else if (strcmp (arg, "uuid") != 0 && strcmp (arg, "md5") != 0 + && strcmp (arg, "sha1") != 0 && !valid_hexarg (arg)) error (EXIT_FAILURE, 0, gettext ("invalid build-ID style '%s'"), arg); else |
