diff options
author | Tristan Gingold <gingold@adacore.com> | 2011-12-15 10:56:48 +0000 |
---|---|---|
committer | Tristan Gingold <gingold@adacore.com> | 2011-12-15 10:56:48 +0000 |
commit | 0c9ef0f001e727226aae6a0dd3963dd81998e2e8 (patch) | |
tree | 4a4b58070fbe66330f9a0aeecab7c1d9a5c6fda1 /bfd/mach-o.c | |
parent | 5011093dd0015bc0eaff522b4e0a18250725d4b4 (diff) | |
download | gdb-0c9ef0f001e727226aae6a0dd3963dd81998e2e8.zip gdb-0c9ef0f001e727226aae6a0dd3963dd81998e2e8.tar.gz gdb-0c9ef0f001e727226aae6a0dd3963dd81998e2e8.tar.bz2 |
bfd/
2011-12-15 Iain Sandoe <iains@gcc.gnu.org>
* mach-o-target.c (bfd_mach_o_bfd_set_private_flags): Use
bfd_mach_o_bfd_set_private_flags.
* mach-o.c (bfd_mach_o_bfd_set_private_flags): New.
* mach-o.h (bfd_mach_o_bfd_set_private_flags): Declare.
gas/
2011-12-15 Iain Sandoe <iains@gcc.gnu.org>
* config/obj-macho.c (obj_mach_o_subsections_by_symbols): New global.
(obj_mach_o_file_properties): New enum.
(obj_mach_o_subsections_via_symbols): Generalize name to...
... (obj_mach_o_fileprop) and use to set subsections_via_symbols.
gas/testsuite/
2011-12-15 Iain Sandoe <iains@gcc.gnu.org>
* gas/mach-o/subsect-via-symbols-0.d: New.
* gas/mach-o/subsect-via-symbols-1.d: New.
* gas/mach-o/subsect-via-symbols.s: New.
Diffstat (limited to 'bfd/mach-o.c')
-rw-r--r-- | bfd/mach-o.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/bfd/mach-o.c b/bfd/mach-o.c index c768689..0c2c2f7 100644 --- a/bfd/mach-o.c +++ b/bfd/mach-o.c @@ -576,6 +576,22 @@ bfd_mach_o_bfd_copy_private_bfd_data (bfd *ibfd, bfd *obfd) return TRUE; } +/* This allows us to set up to 32 bits of flags (unless we invent some + fiendish scheme to subdivide). For now, we'll just set the file flags + without error checking - just overwrite. */ + +bfd_boolean +bfd_mach_o_bfd_set_private_flags (bfd *abfd, flagword flags) +{ + bfd_mach_o_data_struct *mdata = bfd_mach_o_get_data (abfd); + + if (!mdata) + return FALSE; + + mdata->header.flags = flags; + return TRUE; +} + /* Count the total number of symbols. */ static long |