linker: small code-cleanup
This patch adds to make the linker a little bit easier to understand by making all functions that acts on a sofino object with a soinfo_ prefix. This is to more easily distinguish functions that operate on global state, and those that operate on individual libraries. This should be purely stylistic, i.e. no feature/behaviour change. Change-Id: Ie510d13d743aa4317644caefa9910b8af7e84f44
This commit is contained in:
@@ -192,13 +192,11 @@ linker_env_secure(void)
|
||||
"TZDIR",
|
||||
"LD_AOUT_LIBRARY_PATH",
|
||||
"LD_AOUT_PRELOAD",
|
||||
NULL
|
||||
};
|
||||
|
||||
const char* const* cp = unsec_vars;
|
||||
const char* const* endp = cp + sizeof(unsec_vars)/sizeof(unsec_vars[0]);
|
||||
|
||||
while (cp < endp) {
|
||||
linker_env_unset(*cp);
|
||||
cp++;
|
||||
int count;
|
||||
for (count = 0; unsec_vars[count] != NULL; count++) {
|
||||
linker_env_unset(unsec_vars[count]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user