mach-o: add page_size to backend data.
authorTristan Gingold <tristan.gingold@adacore.com>
Wed, 9 Apr 2014 08:10:44 +0000 (10:10 +0200)
committerTristan Gingold <tristan.gingold@adacore.com>
Fri, 18 Apr 2014 08:45:33 +0000 (10:45 +0200)
commit4384b28422294779be111ac24fb34fb6bfe57b32
tree9399a5bb07f116bd6334cf9cfc8b59e38e8edc05
parent452216ab0978a5684aacc76a422efd910d7c15df
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.
bfd/ChangeLog
bfd/mach-o-i386.c
bfd/mach-o-target.c
bfd/mach-o-x86-64.c
bfd/mach-o.c
bfd/mach-o.h