Back to index

enigmail  1.4.3
Defines | Functions
inject.c File Reference
#include <stdint.h>
#include <elf.h>

Go to the source code of this file.


#define Elf_Ehdr   Elf64_Ehdr
#define Elf_Addr   Elf64_Addr


 __attribute__ ((visibility("hidden")))

Define Documentation

#define Elf_Addr   Elf64_Addr

Definition at line 50 of file inject.c.

#define Elf_Ehdr   Elf64_Ehdr

Definition at line 49 of file inject.c.

Function Documentation

__attribute__ ( (visibility("hidden"))  )

Definition at line 53 of file inject.c.

    Elf32_Rel *rel;
    Elf_Addr *ptr, *start;
    for (rel = relhack; rel->r_offset; rel++) {
        start = (Elf_Addr *)((intptr_t)&elf_header + rel->r_offset);
        for (ptr = start; ptr < &start[rel->r_info]; ptr++)
            *ptr += (intptr_t)&elf_header;

#ifndef NOINIT
    original_init(argc, argv, env);