bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/17321] New: add --enable-reloc-section option to generate proper


From: erinn at torproject dot org
Subject: [Bug ld/17321] New: add --enable-reloc-section option to generate proper relocation sections to .exes
Date: Wed, 27 Aug 2014 20:43:03 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=17321

            Bug ID: 17321
           Summary: add --enable-reloc-section option to generate proper
                    relocation sections to .exes
           Product: binutils
           Version: 2.24
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: erinn at torproject dot org

Created attachment 7760
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7760&action=edit
add --enable-reloc-section option

Hi,

When we were trying to build hardened .exes on Windows, we found that using
-fPIE and -pie generated broken .exes that crashed immediately. (See also:
http://sourceforge.net/p/mingw-w64/mailman/message/31167844/)After some
investigation and experimentation, a contributor of ours wrote a patch that
enables the creation of a reloc section which allows us to have functional
ASLR. We're using this with binutils 2.24 and wanted to share it in case this
is helpful, and hopefully to also get some feedback since nobody at Tor feels
capable of giving it a sufficiently good review. If it's helpful to have some
binaries to investigate that have been built with it, you can find one here:
https://people.torproject.org/~erinn/builds/hardened/torbrowser-install-4.0-alpha-1_en-US.exe
2784dea6ec561d4d4225812461274730dc004a3b8ca88c6a3360e05e3fa03741

Patch is attached, thanks in advance for any feedback.

-- 
You are receiving this mail because:
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]