Skip to content

Commit

Permalink
Merge pull request #37 from rogermarlow/fix/macos_macho_lc_segments
Browse files Browse the repository at this point in the history
MacOS missing LC thread segments
  • Loading branch information
Wilfred committed Jan 14, 2017
2 parents 485b3d6 + fc62628 commit 03e945b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/unexmacosx.c
Expand Up @@ -929,7 +929,9 @@ copy_data_segment (struct load_command *lc)
|| strncmp (sectp->sectname, "__mod_init_func", 16) == 0
|| strncmp (sectp->sectname, "__mod_term_func", 16) == 0
|| strncmp (sectp->sectname, "__static_data", 16) == 0
|| strncmp (sectp->sectname, "__objc_", 7) == 0)
|| strncmp (sectp->sectname, "__objc_", 7) == 0
|| strncmp (sectp->sectname, "__thread_data", 13) == 0
|| strncmp (sectp->sectname, "__thread_vars", 13) == 0)
{
if (!unexec_copy (sectp->offset, old_file_offset, sectp->size))
unexec_error ("cannot copy section %.16s", sectp->sectname);
Expand Down

0 comments on commit 03e945b

Please sign in to comment.