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.