Re: Change default VM address
Re: Change default VM address
- Subject: Re: Change default VM address
- From: José Cornado <email@hidden>
- Date: Wed, 14 Sep 2011 11:45:27 -0600
I am passing the flag to the linker. So what does -image_base really do?
Thanks! I will try that.
2011/9/14 Shantonu Sen
<email@hidden>
It's a linker flag, not a compiler driver flag.
Also, you probably want to use -Wl,-pagezero_size,0x80000000, not -image_base
On Sep 14, 2011, at 10:19 AM, José Cornado wrote:
I need to relocate something. It takes longer and it is brute force to stay up there.
If the option does not work or I am misreading the description of the flag, it is another matter.
2011/9/14 Michael Smith
<email@hidden>
On Sep 14, 2011, at 8:44 AM, José Cornado wrote:
This is the last time I bother you guys.
The question is: does -image_base=xxxx work at all?
This is the output from the linker:
gcc -o ....... -image_base=0x2000
Finished building target: xxx
So the linker is stating that 0x2000 is a valid multiple of 4096. It is not complaining. But 0xED and MachOView still show 0x100000000 at LC_SEGMENT_64 (__TEXT) VM Address.
Any hints? Does this require some undocumented option? Belong to a club?
José,
What are you actually trying to do?
The general assumption is that 64-bit user processes will never map anything into the first 4GiB, so rather than fighting the system it might make more sense to rethink what you're doing so that it can be done in the more conventional fashion.
= Mike
--
Excellence in any department can be attained only by the labor of a lifetime; it is not to be purchased at a lesser price -- Samuel Johnson
--
José Cornado
--
home:
http://www.efekctive.comblog:
http://blogging.efekctive.com
----------------------
Everything has been said before, but since nobody listens we have to keep going back and beginning all over again.
Andre Gide
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (
email@hidden)
This email sent to
email@hidden
--
José Cornado
--
home:
http://www.efekctive.com
blog:
http://blogging.efekctive.com----------------------
Everything has been said before, but since nobody listens we have to keep going back and beginning all over again.
Andre Gide
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden