summaryrefslogtreecommitdiff
path: root/bfd/mach-o.c
diff options
context:
space:
mode:
authoriains <iains>2012-02-10 11:07:33 +0000
committeriains <iains>2012-02-10 11:07:33 +0000
commit5742fe483abebdf8d4368a20d7147effa19956dd (patch)
tree33e8907177ae0e6b12c9392a1b617b3949df9da5 /bfd/mach-o.c
parent65e6a5cf652ba0b625215e1cfaa424f889b5ff74 (diff)
downloadgdb-5742fe483abebdf8d4368a20d7147effa19956dd.tar.gz
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.c')
-rw-r--r--bfd/mach-o.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/mach-o.c b/bfd/mach-o.c
index 5386b1ada14..73d4594bc75 100644
--- a/bfd/mach-o.c
+++ b/bfd/mach-o.c
@@ -121,10 +121,10 @@ static const mach_o_section_name_xlat text_section_names_xlat[] =
SEC_CODE | SEC_LOAD, BFD_MACH_O_S_REGULAR,
BFD_MACH_O_S_ATTR_NONE, 0},
{ ".eh_frame", "__eh_frame",
- SEC_READONLY | SEC_LOAD, BFD_MACH_O_S_COALESCED,
+ SEC_READONLY | SEC_DATA | SEC_LOAD, BFD_MACH_O_S_COALESCED,
BFD_MACH_O_S_ATTR_LIVE_SUPPORT
| BFD_MACH_O_S_ATTR_STRIP_STATIC_SYMS
- | BFD_MACH_O_S_ATTR_NO_TOC, 3},
+ | BFD_MACH_O_S_ATTR_NO_TOC, 2},
{ NULL, NULL, 0, 0, 0, 0}
};