mach-o: why is code placed towards the end of a page?
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :content-type:content-transfer-encoding:mime-version:subject:date :x-mailer; bh=ECalL8DTWPJbECc9nuPZ8lV1aCkwDyis2mMUFbekb7Q=; b=VJZU4Z+Y4SV0/lk2QaSF2B61UtFAz+gK9hxLlPshKSix9KkTqAUX0maOT23c610m0d 91uY/Ier78IytWgrZLN/fSuEaZ5Qxzq1liT90OEADpwn65go380W40Hz/AV4myepEofN hrU+/R15aq5iCVxdAe5D0y2cxxxhdEd7Ujm3E= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:content-type:content-transfer-encoding :mime-version:subject:date:x-mailer; b=XfLVfBJVjqBDV5EhqdPN97VkdA7/c+O3CdhIm4cERjoQkMzUKCCmARifGqSbusPkab hFP8YlqqOuWYwkPPHaYTVUyxdAOl0zZBGpIBtb05X2ldNZuG6YyqtugqEdy1diLTA2aJ qsKt7sqn36KfMU5Hw57BL+WVlP1mWKRH/tF6Q= Can the code be placed at the beginning of the page instead? Thanks, Joel --- sectname __text segname __TEXT addr 0x00001fc8 size 0x00000035 offset 4040 align 2^0 (1) reloff 0 nreloc 0 flags 0x80000400 reserved1 0 reserved2 0 --- http://twitter.com/wagerlabs _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... The linker always places code on a power-of-2 boundary towards the end of the page. Is there a reason for this? 0x1fc8 below is 8136, exactly 4040 if you subtract the __PAGEZERO that goes before it. This email sent to site_archiver@lists.apple.com
participants (1)
-
Joel Reymont