Skip to main content
summaryrefslogtreecommitdiffstats
blob: 36f74bb331b170aee6fa938ef3c5f4a8fc71bfa2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*******************************************************************************
 * Copyright (c) 2011, 2014-2017 Wind River Systems, Inc. and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * and Eclipse Distribution License v1.0 which accompany this distribution.
 * The Eclipse Public License is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * and the Eclipse Distribution License is available at
 * http://www.eclipse.org/org/documents/edl-v10.php.
 * You may elect to redistribute this code under either of these licenses.
 *
 * Contributors:
 *     Wind River Systems - initial API and implementation
 *******************************************************************************/


#define elf_relocate elf_relocate_i386
#include <machine/i386/tcf/dwarfreloc-mdep.h>
#undef elf_relocate

#define elf_relocate elf_relocate_x86_64
#include <machine/x86_64/tcf/dwarfreloc-mdep.h>
#undef elf_relocate

#define elf_relocate elf_relocate_arm
#include <machine/arm/tcf/dwarfreloc-mdep.h>
#undef elf_relocate

#define elf_relocate elf_relocate_a64
#include <machine/a64/tcf/dwarfreloc-mdep.h>
#undef elf_relocate

#define elf_relocate elf_relocate_powerpc
#include <machine/powerpc/tcf/dwarfreloc-mdep.h>
#undef elf_relocate

#define elf_relocate elf_relocate_ppc64
#include <machine/ppc64/tcf/dwarfreloc-mdep.h>
#undef elf_relocate

#define elf_relocate elf_relocate_microblaze
#include <machine/microblaze/tcf/dwarfreloc-mdep.h>
#undef elf_relocate

static ElfRelocateFunc elf_relocate_funcs[] = {
    { EM_386,       elf_relocate_i386 },
    { EM_X86_64,    elf_relocate_x86_64 },
    { EM_ARM,       elf_relocate_arm },
    { EM_AARCH64,   elf_relocate_a64 },
    { EM_PPC,       elf_relocate_powerpc },
    { EM_PPC64,     elf_relocate_ppc64 },
    { EM_MICROBLAZE, elf_relocate_microblaze },
    { EM_NONE, NULL }
};

Back to the top