Closed Bug 1601701 Opened 4 years ago Closed 4 years ago

Bump mingw-w64 and add -lssp support

Categories

(Firefox Build System :: General: Unsupported Platforms, enhancement)

enhancement
Not set
normal

Tracking

(firefox-esr68 fixed, firefox73 fixed)

RESOLVED FIXED
mozilla73
Tracking Status
firefox-esr68 --- fixed
firefox73 --- fixed

People

(Reporter: tjr, Assigned: tjr)

References

(Blocks 1 open bug)

Details

Attachments

(4 files)

For several bugs we need to update mingw-w64 library. To perform that update we will need to either disable FORTIFY_SOURCE support or add in -lssp; let's just bump and add ssp support at once.

For posterity can you elaborate on what specific code needs ssp?

Unlike glibc, mingw-w64 does not provide fortified functions at all. (I'm unsure why.) Fortification requires -lssp (or -fstack-protector which adds -lssp implicitly) to work. libssp is a part of gcc libraries, so we need to go grab it out of gcc sources and build it separately.

llvm-mingw has found a way to build libssp indepdendent of gcc which
is great. We set up some stuff to support that and then use that method.

Pushed by tritter@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5055c0077a0d
Add -lssp to the mingw-clang for FORTIFY_SOURCE support r=dmajor
https://hg.mozilla.org/integration/autoland/rev/837d44320e3b
Bump the mingw-w64 revision r=dmajor
https://hg.mozilla.org/integration/autoland/rev/4e78e9e5a426
Build libssp as part of the mingw-clang toolchain build r=froydnj

[Approval Request Comment]
If this is not a sec:{high,crit} bug, please state case for ESR consideration:
Build improvements to the mingw-clang build to reach parity with Tor Browser's current build

User impact if declined: The mingw-clang build on esr68 won't match Tor's. (They use -lssp and fortify source and stack protector)

Fix Landed on Version: Nightly 12/09

Risk to taking this patch (and alternatives if risky): The mingw-clang build might break.

See https://wiki.mozilla.org/Release_Management/ESR_Landing_Process for more info.

Attachment #9114957 - Flags: approval-mozilla-esr68?
Regressions: 1603136
Comment on attachment 9114957 [details] [diff] [review]
Bug 1601701 - Build libssp as part of the mingw-clang toolchain build, bump mingw, add -lssp (esr68)

mingw build change for Tor browser parity. NPOTB for mainline Firefox ESR. Approved for 68.4esr.
Attachment #9114957 - Flags: approval-mozilla-esr68? → approval-mozilla-esr68+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: