Working ASLR implementation.

ASLR for shared libraries is controlled by "-a" in ota_from_target_files.
Binary files are self-contained (supported by apriori/soslim).

Signed-off-by: Hristo Bojinov <hristo@google.com>
Change-Id: I500e325bf4a70a8d69a2ab9b2938e83dadb4e65d
This commit is contained in:
Hristo Bojinov
2010-08-02 10:26:17 -07:00
parent 778c2b6900
commit 96be7205dc
9 changed files with 378 additions and 37 deletions

View File

@@ -62,7 +62,8 @@ struct source_t {
Elf_Data *shstrtab_data;
int elf_fd;
int newelf_fd; /* fd of output file, -1 if output == NULL */
struct stat elf_file_info;
int newelf_relo_fd; /* fd of relocaion output file */
struct stat elf_file_info;
GElf_Ehdr elf_hdr, oldelf_hdr;
size_t shstrndx;
int shnum; /* number of sections */