aboutsummaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils/libbfd
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2010-11-03 16:39:55 +0000
committerDimitry Andric <dim@FreeBSD.org>2010-11-03 16:39:55 +0000
commit964cec10811a24c58501c3e4148a513c280b5240 (patch)
treeb926d5a4f2929b18e2c1fe158353591c705da80a /gnu/usr.bin/binutils/libbfd
parentb9f2f8c36f23f48488e9f8ae2b018d3fa6c3a44b (diff)
Notes
Diffstat (limited to 'gnu/usr.bin/binutils/libbfd')
-rw-r--r--gnu/usr.bin/binutils/libbfd/elf-fbsd-brand.c27
1 files changed, 2 insertions, 25 deletions
diff --git a/gnu/usr.bin/binutils/libbfd/elf-fbsd-brand.c b/gnu/usr.bin/binutils/libbfd/elf-fbsd-brand.c
index a42fc2898183..b8ba60e5f7d9 100644
--- a/gnu/usr.bin/binutils/libbfd/elf-fbsd-brand.c
+++ b/gnu/usr.bin/binutils/libbfd/elf-fbsd-brand.c
@@ -26,28 +26,5 @@
* $FreeBSD$
*/
-#include "bfd.h"
-#include "sysdep.h"
-#include "elf-bfd.h"
-
-/* The kernel recognizes executables as valid only if they carry a
- "FreeBSD" label in the ELF header. So we put this label on all
- executables and (for simplicity) also all other object files. */
-
-static void elf_fbsd_post_process_headers
- PARAMS ((bfd *, struct bfd_link_info *));
-
-static void
-elf_fbsd_post_process_headers (abfd, link_info)
- bfd * abfd;
- struct bfd_link_info * link_info ATTRIBUTE_UNUSED;
-{
- Elf_Internal_Ehdr * i_ehdrp; /* ELF file header, internal form. */
-
- i_ehdrp = elf_elfheader (abfd);
-
- /* Put an ABI label supported by FreeBSD >= 4.1. */
- i_ehdrp->e_ident[EI_OSABI] = ELFOSABI_FREEBSD;
-}
-
-#define elf_backend_post_process_headers elf_fbsd_post_process_headers
+#define ELF_OSABI ELFOSABI_FREEBSD
+#define elf_backend_post_process_headers _bfd_elf_set_osabi