Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Update.
* elf/Makefile (trusted-dirs.st): Use gen-trusted-dirs.awk. * elf/gen-trusted-dirs.awk: New file. * elf/dl-load.c (systems_dirs): Moved into file scope. Initialize from SYSTEM_DIRS macro. (system_dirs_len): New variable. Contains lengths of system_dirs strings. (fillin_rpath): Rewrite for systems_dirs being a simple string. Improve string comparisons. Change parameter trusted to be a flag. Change all callers. (_dt_init_paths): Improve using new format for system_dirs.
- Loading branch information
Ulrich Drepper
committed
May 3, 1999
1 parent
6853609
commit ab7eb29
Showing
4 changed files
with
101 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
BEGIN { | ||
FS = " "; | ||
} | ||
|
||
{ | ||
for (i = 1; i <= NF; ++i) { | ||
s[cnt++] = $i"/"; | ||
} | ||
} | ||
|
||
END { | ||
printf ("#define SYSTEM_DIRS \\\n"); | ||
|
||
printf (" \"%s\"", s[0]); | ||
|
||
for (i = 1; i < cnt; ++i) { | ||
printf (" \"\\0\" \"%s\"", s[i]); | ||
} | ||
|
||
printf ("\n\n"); | ||
|
||
printf ("#define SYSTEM_DIRS_LEN \\\n"); | ||
|
||
printf (" %d", length (s[0])); | ||
m = length (s[0]); | ||
|
||
for (i = 1; i < cnt; ++i) { | ||
printf (", %d", length(s[i])); | ||
if (length(s[i]) > m) { | ||
m = length(s[i]); | ||
} | ||
} | ||
|
||
printf ("\n\n"); | ||
|
||
printf ("#define SYSTEM_DIRS_MAX_LEN\t%d\n", m); | ||
} |