mach-o: why is code placed towards the end of a page?
mach-o: why is code placed towards the end of a page?
- Subject: mach-o: why is code placed towards the end of a page?
- From: Joel Reymont <email@hidden>
- Date: Thu, 8 Jan 2009 21:12:09 +0000
The linker always places code on a power-of-2 boundary towards the end
of the page. Is there a reason for this?
Can the code be placed at the beginning of the page instead?
0x1fc8 below is 8136, exactly 4040 if you subtract the __PAGEZERO that
goes before it.
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden