diff options
author | Alan Modra <amodra@gmail.com> | 2019-09-23 10:06:45 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2019-09-23 10:27:21 +0930 |
commit | f37164d78b0d9600862b7038b896922127749b52 (patch) | |
tree | 8cba4ad4f4736f03cbb53e2c90284443492ebd0f /bfd/pe-arm.c | |
parent | 79c2ce54e1e52e5d63d96af56c544de778036a12 (diff) | |
download | gdb-f37164d78b0d9600862b7038b896922127749b52.zip gdb-f37164d78b0d9600862b7038b896922127749b52.tar.gz gdb-f37164d78b0d9600862b7038b896922127749b52.tar.bz2 |
arm bfd.h tidy
bfd/
* bfd-in.h: Move arm declaraions..
* cpu-arm.h: ..to here, new file..
* coff-arm.h: ..and here, new file..
* elf32-arm.h: ..and here, new file.
* cpu-arm.c: Include cpu-arm.h.
* coff-arm.c: Include cpu-arm.h and coff-arm.h.
* elf32-arm.c: Include cpu-arm.h and elf32-arm.h.
* pe-arm.c: Move function rename defines later.
* pe-arm-wince.c: Likewise and include sysdep.h and bfd.h early.
* bfd-in2.h: Regenerate.
gas/
* config/tc-arm.c: Include cpu-arm.h.
ld/
* emultempl/armelf.em: Include elf32-arm.h.
* emultempl/pe.em: Move func defines later and include coff-arm.h.
Diffstat (limited to 'bfd/pe-arm.c')
-rw-r--r-- | bfd/pe-arm.c | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/bfd/pe-arm.c b/bfd/pe-arm.c index 2d1b7ea..4667046 100644 --- a/bfd/pe-arm.c +++ b/bfd/pe-arm.c @@ -18,18 +18,6 @@ Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ - -/* Do this before including bfd.h, so we prototype the right functions. */ - -#ifndef bfd_arm_allocate_interworking_sections -#define bfd_arm_allocate_interworking_sections \ - bfd_armpe_allocate_interworking_sections -#define bfd_arm_get_bfd_for_interworking \ - bfd_armpe_get_bfd_for_interworking -#define bfd_arm_process_before_allocation \ - bfd_armpe_process_before_allocation -#endif - #include "sysdep.h" #include "bfd.h" @@ -64,4 +52,13 @@ { COFF_SECTION_NAME_PARTIAL_MATCH (".gnu.linkonce.wi."), \ COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 0 } +#ifndef bfd_arm_allocate_interworking_sections +#define bfd_arm_allocate_interworking_sections \ + bfd_armpe_allocate_interworking_sections +#define bfd_arm_get_bfd_for_interworking \ + bfd_armpe_get_bfd_for_interworking +#define bfd_arm_process_before_allocation \ + bfd_armpe_process_before_allocation +#endif + #include "coff-arm.c" |