Cleaning the linker environment as we initialize it requires less API.

Change-Id: I612fd699e46833a411589478564a1f859223c380
This commit is contained in:
Elliott Hughes
2012-11-02 12:40:11 -07:00
parent ed537239a9
commit 0894b2c5d3
2 changed files with 66 additions and 95 deletions

View File

@@ -34,15 +34,8 @@
// returns the start of the aux vectors after the environment block.
extern unsigned* linker_env_init(unsigned* environment_and_aux_vectors);
// Unset a given environment variable. In case the variable is defined
// multiple times, unset all instances. This modifies the environment
// block, so any pointer returned by linker_env_get() after this call
// might become invalid.
extern void linker_env_unset(const char* name);
// Returns the value of environment variable 'name' if defined and not
// empty, or NULL otherwise. Note that the returned pointer may become
// invalid if linker_env_unset() is called after this function.
// empty, or NULL otherwise.
extern const char* linker_env_get(const char* name);
// Returns the value of this program's AT_SECURE variable.