diff options
author | Iain Sandoe <iain@codesourcery.com> | 2012-02-10 11:07:33 +0000 |
---|---|---|
committer | Iain Sandoe <iain@codesourcery.com> | 2012-02-10 11:07:33 +0000 |
commit | 632039e0a80cb94726526c8bfac3bf0d2c863dbc (patch) | |
tree | c1626beac53206b1568ee8fea5fc76ece36a8c9e /bfd/mach-o-i386.c | |
parent | 565a6476ffc155689d6ac16185a2208ca586078a (diff) | |
download | gdb-632039e0a80cb94726526c8bfac3bf0d2c863dbc.zip gdb-632039e0a80cb94726526c8bfac3bf0d2c863dbc.tar.gz gdb-632039e0a80cb94726526c8bfac3bf0d2c863dbc.tar.bz2 |
correct some mach-o section specification nits.
bfd:
* mach-o.c (mach_o_section_name_xlat): Correct eh-frame section
parameters.
* mach-o-x86-64.c (text_section_names_xlat): New.
(mach_o_x86_64_segsec_names_xlat): New.
(bfd_mach_o_tgt_seg_table): Define to mach_o_x86_64_segsec_names_xlat.
* mach-o-i386.c (text_section_names_xlat): Correct section parameters.
Diffstat (limited to 'bfd/mach-o-i386.c')
-rw-r--r-- | bfd/mach-o-i386.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bfd/mach-o-i386.c b/bfd/mach-o-i386.c index d106710..71272eb 100644 --- a/bfd/mach-o-i386.c +++ b/bfd/mach-o-i386.c @@ -283,11 +283,11 @@ bfd_mach_o_i386_print_thread (bfd *abfd, bfd_mach_o_thread_flavour *thread, static const mach_o_section_name_xlat text_section_names_xlat[] = { { ".symbol_stub", "__symbol_stub", - SEC_DATA | SEC_LOAD, BFD_MACH_O_S_SYMBOL_STUBS, + SEC_CODE | SEC_LOAD, BFD_MACH_O_S_SYMBOL_STUBS, BFD_MACH_O_S_ATTR_PURE_INSTRUCTIONS, 0}, { ".picsymbol_stub", "__picsymbol_stub", - SEC_DATA | SEC_LOAD, BFD_MACH_O_S_SYMBOL_STUBS, + SEC_CODE | SEC_LOAD, BFD_MACH_O_S_SYMBOL_STUBS, BFD_MACH_O_S_ATTR_PURE_INSTRUCTIONS, 0}, { NULL, NULL, 0, 0, 0, 0} @@ -315,7 +315,7 @@ static const mach_o_section_name_xlat data_section_names_xlat[] = static const mach_o_section_name_xlat import_section_names_xlat[] = { { ".picsymbol_stub3", "__jump_table", - SEC_DATA | SEC_LOAD, BFD_MACH_O_S_SYMBOL_STUBS, + SEC_CODE | SEC_LOAD, BFD_MACH_O_S_SYMBOL_STUBS, BFD_MACH_O_S_ATTR_PURE_INSTRUCTIONS | BFD_MACH_O_S_SELF_MODIFYING_CODE, 6}, |