Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7782443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T19:32:46+00:00 2026-06-01T19:32:46+00:00

According to ASLR(Address Space Layout Randomization), It provides random stack and heap allocations and

  • 0

According to ASLR(Address Space Layout Randomization), It provides random stack and heap allocations and page load every time a process starts, and randomize the address where objects are placed in virtual space of a given process.

But in my application running on ios, i create an object named ObjectA, after several reload the process ,i found that the address of ObjectA is all the same ,no randomize.

How does Apples’s own ASLR implementation work? Why ObjectA’s address is all the same?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T19:32:48+00:00Added an answer on June 1, 2026 at 7:32 pm

    What you mean for “several reload”? You should explicitly quit the application, because of the multitasking you might reopen the same process.

    eg.
    This is one of my applications printing out the address of a UIViewController instance, as you can see the address of the object is different in every execution.

    First run: <DCViewController: 0x13d4a0>
    Second run: <DCViewController: 0x2880f0>
    Third run: <DCViewController: 0x2a2050>
    

    (I do not think this is the case but in XCode there’s an option to enable PIE (Position Independent Executable) under “Build Settings” and it’s called “Don’t Create Position Indipendent Executables”, you can find it easily but typing “pie” in the search box. This option should be set to No).

    EDIT:

    Moreover Xcode will only make PIE binaries if deployment target is >= 4.3

    Hope this helps =)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

According to Steffen's post this is an efficient way to generate random BOOL s
According to Wikipedia, on the Comparison of programming languages page, it says that F#
According to this: Get current date/time in seconds var seconds = new Date().getTime() /
According to Mark's awesome tutorial page, The map function applies a given function that
If the ASLR play a role in IOS and randomize the start address of
According to the gcc docs , memcmp is not an intrinsic function of GCC.
According to here , the C compiler will pad out values when writing a
According to Apple's description, the aurioTouch sample app is suppose to get the audio
According to http://lipas.uwasa.fi/~ts/info/proctips.html#orrules , you can make basic or rules in .procmailrc with something
According to W3C standards, if you have a nillable element with a nil value,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.