platform_build/tools/soslim/soslim.h
Hristo Bojinov 96be7205dc 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
2010-08-02 14:25:01 -07:00

35 lines
931 B
C

#ifndef ELFCOPY_H
#define ELFCOPY_H
#include <libelf.h>
#include <libebl.h>
#include <elf.h>
#include <gelf.h>
/*
symbol_filter:
On input: symbol_filter[i] indicates whether to keep a symbol (1) or to
remove it from the symbol table.
On output: symbol_filter[i] indicates whether a symbol was removed (0) or
kept (1) in the symbol table.
*/
void clone_elf(Elf *elf, Elf *newelf,
const char *elf_name,
const char *newelf_name,
bool *symbol_filter,
int num_symbols,
int shady
#ifdef SUPPORT_ANDROID_PRELINK_TAGS
, int *prelinked,
int *elf_little,
long *prelink_addr,
int *retouched,
unsigned int *retouch_byte_cnt,
char *retouch_buf
#endif
, bool rebuild_shstrtab,
bool strip_debug,
bool dry_run);
#endif/*ELFCOPY_H*/