summaryrefslogtreecommitdiff
path: root/src/unexmacosx.c
diff options
context:
space:
mode:
authorAndrew Choi <akochoi@shaw.ca>2003-02-18 15:58:00 +0000
committerAndrew Choi <akochoi@shaw.ca>2003-02-18 15:58:00 +0000
commit50719014d9efda42028522434c7674ff5aef42a3 (patch)
tree02bd3426a68d3e8c3ce7fe5a8a456af204c9a3b8 /src/unexmacosx.c
parentda7ab2481d47206687d6c981d4cfc1d89bb3a2ae (diff)
downloademacs-50719014d9efda42028522434c7674ff5aef42a3.tar.gz
unexmacosx.c (copy_data_segment): Also copy __cfstring section.
Diffstat (limited to 'src/unexmacosx.c')
-rw-r--r--src/unexmacosx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/unexmacosx.c b/src/unexmacosx.c
index 4f1c29b1ef8..ac87f9e6c63 100644
--- a/src/unexmacosx.c
+++ b/src/unexmacosx.c
@@ -638,7 +638,8 @@ copy_data_segment (struct load_command *lc)
else if (strncmp (sectp->sectname, "__la_symbol_ptr", 16) == 0
|| strncmp (sectp->sectname, "__nl_symbol_ptr", 16) == 0
|| strncmp (sectp->sectname, "__dyld", 16) == 0
- || strncmp (sectp->sectname, "__const", 16) == 0)
+ || strncmp (sectp->sectname, "__const", 16) == 0
+ || strncmp (sectp->sectname, "__cfstring", 16) == 0)
{
if (!unexec_copy (sectp->offset, old_file_offset, sectp->size))
unexec_error ("cannot copy section %s", sectp->sectname);