diff options
author | Tristan Gingold <tristan.gingold@adacore.com> | 2014-04-09 10:10:44 +0200 |
---|---|---|
committer | Tristan Gingold <tristan.gingold@adacore.com> | 2014-04-18 10:45:33 +0200 |
commit | 4384b28422294779be111ac24fb34fb6bfe57b32 (patch) | |
tree | 9399a5bb07f116bd6334cf9cfc8b59e38e8edc05 /bfd/mach-o-x86-64.c | |
parent | 452216ab0978a5684aacc76a422efd910d7c15df (diff) | |
download | gdb-4384b28422294779be111ac24fb34fb6bfe57b32.zip gdb-4384b28422294779be111ac24fb34fb6bfe57b32.tar.gz gdb-4384b28422294779be111ac24fb34fb6bfe57b32.tar.bz2 |
mach-o: add page_size to backend data.
This is preliminary work to layout executables.
bfd/
* mach-o.h (bfd_mach_o_backend_data): Add page_size field.
* mach-o-target.c: Check TARGET_PAGESIZE is defined.
(TARGET_NAME_BACKEND): Add TARGET_PAGESIZE.
* mach-o.c (TARGET_PAGESIZE): Define and undefined for
each targets declared.
* mach-o-x86-64.c (TARGET_PAGESIZE): Define.
* mach-o-i386.c (TARGET_PAGESIZE): Define.
Diffstat (limited to 'bfd/mach-o-x86-64.c')
-rw-r--r-- | bfd/mach-o-x86-64.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/mach-o-x86-64.c b/bfd/mach-o-x86-64.c index 017a6b8..14a7067 100644 --- a/bfd/mach-o-x86-64.c +++ b/bfd/mach-o-x86-64.c @@ -356,6 +356,7 @@ const mach_o_segment_name_xlat mach_o_x86_64_segsec_names_xlat[] = #define TARGET_NAME mach_o_x86_64_vec #define TARGET_STRING "mach-o-x86-64" #define TARGET_ARCHITECTURE bfd_arch_i386 +#define TARGET_PAGESIZE 4096 #define TARGET_BIG_ENDIAN 0 #define TARGET_ARCHIVE 0 #define TARGET_PRIORITY 0 |