codesign an old Director projector on OS X 10.13 - perhaps manipulate __LINKEDIT segment value

前端 未结 3 1701
一向
一向 2021-01-24 06:55

(See Updates at end of this post)

For $reasons, I need to codesign an old Director projector that we can no longer re-publish (no access to original source code or to Di

3条回答
  •  死守一世寂寞
    2021-01-24 07:36

    DIrector uses a scheme widely used on Windows called "Overload". I attaches some data at the end of the physical file, but beyond the size of the executable image. This approach is not supported with Mach-O files. The physical image has to end with the last byte covered by the LINKEDIT segment, and even the order of items inside the LINKEDIT segment is well defined. Reason for this was prebinding in the past, now it is codesigning.

    The appended data is the initial DIR/DXR Directory wants to load first. I guess this has been fixed later by adding the DIR/DXR into the application bundle. But I am not anymore into Director, so I am not sure about this.

提交回复
热议问题