aboutsummaryrefslogtreecommitdiff
path: root/bfd/mach-o.h
diff options
context:
space:
mode:
authorTristan Gingold <tristan.gingold@adacore.com>2014-04-09 10:10:44 +0200
committerTristan Gingold <tristan.gingold@adacore.com>2014-04-18 10:45:33 +0200
commit4384b28422294779be111ac24fb34fb6bfe57b32 (patch)
tree9399a5bb07f116bd6334cf9cfc8b59e38e8edc05 /bfd/mach-o.h
parent452216ab0978a5684aacc76a422efd910d7c15df (diff)
downloadgdb-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.h')
-rw-r--r--bfd/mach-o.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/mach-o.h b/bfd/mach-o.h
index 629459b..95827e8 100644
--- a/bfd/mach-o.h
+++ b/bfd/mach-o.h
@@ -719,6 +719,7 @@ bfd_mach_o_section_data_for_bfd_name (bfd *, const char *, const char **);
typedef struct bfd_mach_o_backend_data
{
enum bfd_architecture arch;
+ bfd_vma page_size;
bfd_boolean (*_bfd_mach_o_swap_reloc_in)(arelent *, bfd_mach_o_reloc_info *);
bfd_boolean (*_bfd_mach_o_swap_reloc_out)(arelent *, bfd_mach_o_reloc_info *);
bfd_boolean (*_bfd_mach_o_print_thread)(bfd *, bfd_mach_o_thread_flavour *,