Skip to content

Is csc -baseaddress useful with ASLR? #14040

Closed

Description

@KalleOlaviNiemitalo

For more information about when and why to use this option, see Larry Osterman's WebLog.

Is the -baseaddress option of the C# compiler at all useful nowadays, when Address Space Layout Randomization (ASLR) will relocate DLLs anyhow? The linked weblog does not mention ASLR; it was written in 2004, and ASLR was released with Windows Vista in 2007.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Activity

  1. BillWagner commented on Sep 3, 2019

    @BillWagner
    Member

    That's a good question @KalleOlaviNiemitalo

    @jcouv @jaredpar Do you know the answer, or where to track this information down?

  2. added
    needs-more-info
    waiting-on-feedback
    and removed
    needs-more-info
    on Sep 3, 2019
  3. akochepasov commented on Sep 27, 2019

    @akochepasov

    One of our drivers is very old and crashes when ASLR enabled

  4. KalleOlaviNiemitalo commented on Sep 27, 2019

    @KalleOlaviNiemitalo
    Author

    @akochepasov, was that driver built with the C# compiler?

  5. akochepasov commented on Sep 27, 2019

    @akochepasov

    @KalleOlaviNiemitalo, no, it is a native DLL. However, it's loaded into C# exe.

  6. KalleOlaviNiemitalo commented on Oct 29, 2019

    @KalleOlaviNiemitalo
    Author

    Improving Startup Time: A primer on setting base-addresses for managed DLLs – CLR and Framework Perf Blog notes that the base address matters if you NGen the assembly and then run it on an OS older than Windows Vista. I don't think Microsoft supports those OS versions any more, though.

  7. added
    won't fix
    on Jan 25, 2021
  8. dotnet-bot commented on Jan 25, 2021

    @dotnet-bot
    Contributor

    This issue has been closed as part of the issue backlog grooming process outlined in #22351.

    That automated process may have closed some issues that should be addressed. If you think this is one of them, reopen it with a comment explaining why. Tag the @dotnet/docs team for visibility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dotnet-csharp/svcerrors-warnings/subsvcwaiting-on-feedbackwon't fix

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions