Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for full RELRO #43170

Merged
merged 5 commits into from Jul 19, 2017
Merged

Add support for full RELRO #43170

merged 5 commits into from Jul 19, 2017

Commits on Jul 11, 2017

  1. Add support for full RELRO

    This commit adds support for full RELRO, and enables it for the
    platforms I know have support for it.
    
    Full RELRO makes the PLT+GOT data read-only on startup, preventing it
    from being overwritten.
    
    http://tk-blog.blogspot.com/2009/02/relro-not-so-well-known-memory.html
    
    Fixes rust-lang#29877.
    
    Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
    kyrias committed Jul 11, 2017
    Copy the full SHA
    2306687 View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2017

  1. Support both partial and full RELRO

    Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
    kyrias committed Jul 14, 2017
    Copy the full SHA
    94b9cc9 View commit details
    Browse the repository at this point in the history
  2. Make partial RELRO default on ppc64 due to segfault

    On at least RHEL6 there is a segfault caused by the older ld.so version
    when BIND_NOW is used, so use partial RELRO by default on ppc64
    architectures for now.
    
    Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
    kyrias committed Jul 14, 2017
    Copy the full SHA
    ecf3f6d View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2017

  1. Move relro_level from CodegenOptions to DebuggingOptions

    Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
    kyrias committed Jul 17, 2017
    Copy the full SHA
    6a8328c View commit details
    Browse the repository at this point in the history
  2. Implement FromStr for RelroLevel rather than duplicating the match

    Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
    kyrias committed Jul 17, 2017
    Copy the full SHA
    2161fb2 View commit details
    Browse the repository at this point in the history