Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1527905

Summary: gcc: Link libgcc with BIND_NOW
Product: Red Hat Enterprise Linux 7 Reporter: Florian Weimer <fweimer>
Component: gccAssignee: Marek Polacek <mpolacek>
Status: CLOSED WONTFIX QA Contact: Michael Petlan <mpetlan>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.5CC: jakub, ohudlick
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1527903 Environment:
Last Closed: 2018-11-13 19:25:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1527903    
Bug Blocks: 1539083, 1527904    

Description Florian Weimer 2017-12-20 12:28:27 UTC
+++ This bug was initially created as a clone of Bug #1527903 +++

Bug 1527887 shows that PTHREAD_STACK_MIN is really low on x86-64 and cannot accomodate both a signal handler frame, the libgcc unwinder, and an ld.so trampoline on AVX-512 (where the XSAVE area is around 2.5 KiB, and it is needed twice).

We can immediately free around 2.5 KiB if we link libgcc with BIND_NOW, so that no trampoline is needed at run time.  Linking libgcc with BIND_NOW is desirable hardening, too.