summaryrefslogtreecommitdiff
path: root/src/unexmacosx.c
diff options
context:
space:
mode:
authorJohn Wiegley <jwiegley@gmail.com>2012-06-26 22:52:02 -0500
committerJohn Wiegley <jwiegley@gmail.com>2012-06-26 22:52:02 -0500
commit157e99e4284e376777fd22734b3c78c191cf313b (patch)
tree1dd25116b230a7ec468b01fb230a22602e6f55cf /src/unexmacosx.c
parented6b35106553c615b210a12b51a7ebb57aaa82e4 (diff)
downloademacs-157e99e4284e376777fd22734b3c78c191cf313b.tar.gz
unexmacosx.c (copy_data_segment): Added two section names used on Mac
OS X Lion: __mod_init_func and __mod_term_func.
Diffstat (limited to 'src/unexmacosx.c')
-rw-r--r--src/unexmacosx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/unexmacosx.c b/src/unexmacosx.c
index 47efe41fdd9..423853c8139 100644
--- a/src/unexmacosx.c
+++ b/src/unexmacosx.c
@@ -846,6 +846,8 @@ copy_data_segment (struct load_command *lc)
|| strncmp (sectp->sectname, "__cfstring", 16) == 0
|| strncmp (sectp->sectname, "__gcc_except_tab", 16) == 0
|| strncmp (sectp->sectname, "__program_vars", 16) == 0
+ || strncmp (sectp->sectname, "__mod_init_func", 16) == 0
+ || strncmp (sectp->sectname, "__mod_term_func", 16) == 0
|| strncmp (sectp->sectname, "__objc_", 7) == 0)
{
if (!unexec_copy (sectp->offset, old_file_offset, sectp->size))