From 37bb3fcd9010f6fead99568613b2aa8a7fcdc703 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Fri, 20 May 2016 19:37:29 +0200 Subject: Add support for m68k Signed-off-by: Andreas Schwab --- libebl/eblopenbackend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libebl/eblopenbackend.c') diff --git a/libebl/eblopenbackend.c b/libebl/eblopenbackend.c index 372ef2a4..2b922543 100644 --- a/libebl/eblopenbackend.c +++ b/libebl/eblopenbackend.c @@ -73,7 +73,7 @@ static const struct { "s390", "ebl_s390", "s390", 4, EM_S390, 0, 0 }, { "m32", "elf_m32", "m32", 3, EM_M32, 0, 0 }, - { "m68k", "elf_m68k", "m68k", 4, EM_68K, 0, 0 }, + { "m68k", "elf_m68k", "m68k", 4, EM_68K, ELFCLASS32, ELFDATA2MSB }, { "m88k", "elf_m88k", "m88k", 4, EM_88K, 0, 0 }, { "i860", "elf_i860", "i860", 4, EM_860, 0, 0 }, { "s370", "ebl_s370", "s370", 4, EM_S370, 0, 0 }, -- cgit v1.2.3 From 9a36c9226c4a237208a7735f0e6a6fd1eefb60ab Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Tue, 21 Jun 2016 15:10:10 -0700 Subject: Add support for BPF Signed-off-by: Richard Henderson --- libebl/eblopenbackend.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libebl/eblopenbackend.c') diff --git a/libebl/eblopenbackend.c b/libebl/eblopenbackend.c index 2b922543..16ec1c45 100644 --- a/libebl/eblopenbackend.c +++ b/libebl/eblopenbackend.c @@ -132,6 +132,7 @@ static const struct { "arc", "elf_arc_a5", "arc_a5", 6, EM_ARC_A5, 0, 0 }, { "xtensa", "elf_xtensa", "xtensa", 6, EM_XTENSA, 0, 0 }, { "aarch64", "elf_aarch64", "aarch64", 7, EM_AARCH64, ELFCLASS64, 0 }, + { "bpf", "elf_bpf", "bpf", 3, EM_BPF, 0, 0 }, }; #define nmachines (sizeof (machines) / sizeof (machines[0])) -- cgit v1.2.3 From e6ca75ddcf2ba9314077ddc9768eaac2405305e1 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Wed, 6 Jul 2016 18:27:54 +0200 Subject: Remove eu-ld and unused code. Nobody has hacked on eu-ld in a very long time. It didn't really work. And we didn't install it by default in the spec file. Remove sources, the build rules and any (now) unused code. Signed-off-by: Mark Wielaard --- libebl/eblopenbackend.c | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) (limited to 'libebl/eblopenbackend.c') diff --git a/libebl/eblopenbackend.c b/libebl/eblopenbackend.c index 16ec1c45..aa75b957 100644 --- a/libebl/eblopenbackend.c +++ b/libebl/eblopenbackend.c @@ -1,5 +1,5 @@ /* Generate ELF backend handle. - Copyright (C) 2000-2015 Red Hat, Inc. + Copyright (C) 2000-2016 Red Hat, Inc. This file is part of elfutils. This file is free software; you can redistribute it and/or modify @@ -140,8 +140,6 @@ static const struct #define MAX_PREFIX_LEN 16 /* Default callbacks. Mostly they just return the error value. */ -static const char *default_object_type_name (int ignore, char *buf, - size_t len); static const char *default_reloc_type_name (int ignore, char *buf, size_t len); static bool default_reloc_type_check (int ignore); static bool default_reloc_valid_use (Elf *elf, int ignore); @@ -163,7 +161,6 @@ static const char *default_symbol_binding_name (int ignore, char *buf, static const char *default_dynamic_tag_name (int64_t ignore, char *buf, size_t len); static bool default_dynamic_tag_check (int64_t ignore); -static GElf_Word default_sh_flags_combine (GElf_Word flags1, GElf_Word flags2); static const char *default_osabi_name (int ignore, char *buf, size_t len); static void default_destr (struct ebl *ignore); static const char *default_core_note_type_name (uint32_t, char *buf, @@ -210,7 +207,6 @@ static int default_abi_cfi (Ebl *ebl, Dwarf_CIE *abi_info); static void fill_defaults (Ebl *result) { - result->object_type_name = default_object_type_name; result->reloc_type_name = default_reloc_type_name; result->reloc_type_check = default_reloc_type_check; result->reloc_valid_use = default_reloc_valid_use; @@ -227,7 +223,6 @@ fill_defaults (Ebl *result) result->symbol_binding_name = default_symbol_binding_name; result->dynamic_tag_name = default_dynamic_tag_name; result->dynamic_tag_check = default_dynamic_tag_check; - result->sh_flags_combine = default_sh_flags_combine; result->osabi_name = default_osabi_name; result->core_note_type_name = default_core_note_type_name; result->object_note_type_name = default_object_note_type_name; @@ -430,14 +425,6 @@ ebl_openbackend_emulation (const char *emulation) /* Default callbacks. Mostly they just return the error value. */ -static const char * -default_object_type_name (int ignore __attribute__ ((unused)), - char *buf __attribute__ ((unused)), - size_t len __attribute__ ((unused))) -{ - return NULL; -} - static const char * default_reloc_type_name (int ignore __attribute__ ((unused)), char *buf __attribute__ ((unused)), @@ -555,12 +542,6 @@ default_dynamic_tag_check (int64_t ignore __attribute__ ((unused))) return false; } -static GElf_Word -default_sh_flags_combine (GElf_Word flags1, GElf_Word flags2) -{ - return SH_FLAGS_COMBINE (flags1, flags2); -} - static void default_destr (struct ebl *ignore __attribute__ ((unused))) { -- cgit v1.2.3