From e1dad58d73dcf0ab1cabb92b2e2a79106486b1b0 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 17 May 2012 02:24:50 +0000 Subject: bfd/ * elf32-ppc.c (has_tls_reloc, has_tls_get_addr_call, has_vle_insns, is_ppc_vle): Move to.. * elf32-ppc.h: ..here, making is_ppc_vle a macro. opcodes/ * ppc_dis.c: Don't include elf/ppc.h. --- bfd/elf32-ppc.c | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'bfd/elf32-ppc.c') diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c index c0b0c14..0835a91 100644 --- a/bfd/elf32-ppc.c +++ b/bfd/elf32-ppc.c @@ -2094,26 +2094,6 @@ struct ppc_elf_obj_tdata (bfd_get_flavour (bfd) == bfd_target_elf_flavour \ && elf_object_id (bfd) == PPC32_ELF_DATA) -/* Rename some of the generic section flags to better document how they - are used for ppc32. */ - -/* Nonzero if this section has TLS related relocations. */ -#define has_tls_reloc sec_flg0 - -/* Nonzero if this section has a call to __tls_get_addr. */ -#define has_tls_get_addr_call sec_flg1 - -/* Nonzero if this secs_tls_get_addr_calltion has the VLE bit set. */ -#define has_vle_insns sec_flg2 - -bfd_boolean -is_ppc_vle (asection *sec) -{ - return (sec->owner != NULL - && is_ppc_elf (sec->owner) - && sec->has_vle_insns); -} - /* Override the generic function because we store some extras. */ static bfd_boolean -- cgit v1.1