Bug 1988450

Summary: annocheck reports that libgomp.so.1.0.0, libstdc++.so.6.0.29, and libgcc_s-11-20210623.so.1 are built without -Wl,-z,now
Product: Red Hat Enterprise Linux 9 Reporter: Jan Pazdziora <jpazdziora>
Component: gccAssignee: Marek Polacek <mpolacek>
gcc sub component: system-version QA Contact: Václav Kadlčík <vkadlcik>
Status: CLOSED CURRENTRELEASE Docs Contact:
Severity: unspecified    
Priority: unspecified CC: ahajkova, fweimer, jakub, jjaburek, jpazdziora, ohudlick, rlemosor, vkadlcik
Version: 9.0Keywords: Bugfix, Triaged
Target Milestone: beta   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: gcc-11.2.1-2.2.el9 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-12-07 21:30:47 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:    
Bug Blocks: 2044387    

Description Jan Pazdziora 2021-07-30 15:03:28 UTC
Description of problem:

Running annocheck on /usr/lib64/libgomp.so* /usr/lib64/libstdc++.so.* /lib64/libgcc_s-*.so.* fails.

Version-Release number of selected component (if applicable):

libgcc-11.1.1-6.1.el9.x86_64
libgomp-11.1.1-6.1.el9.x86_64
libstdc++-11.1.1-6.1.el9.x86_64

How reproducible:

Deterministic.

Steps to Reproduce:
1. annocheck /usr/lib64/libgomp.so* /usr/lib64/libstdc++.so.* /lib64/libgcc_s-*.so.*

Actual results:

annocheck: Version 9.79.
Hardened: libgcc_s-11-20210623.so.1: FAIL: bind-now test because not linked with -Wl,-z,now 
Hardened: Rerun annocheck with --verbose to see more information on the tests.
Hardened: libstdc++.so.6.0.29: FAIL: bind-now test because not linked with -Wl,-z,now 
Hardened: libstdc++.so.6: FAIL: bind-now test because not linked with -Wl,-z,now 
Hardened: libgomp.so.1.0.0: FAIL: bind-now test because not linked with -Wl,-z,now 
Hardened: libgomp.so.1: FAIL: bind-now test because not linked with -Wl,-z,now 

Expected results:

No FAILs.

Additional info:

Comment 11 Václav Kadlčík 2021-08-16 05:43:03 UTC
Pre-verified: gcc-11.2.1-2.2.el9

Comment 14 Václav Kadlčík 2021-08-17 08:54:37 UTC
verified: gcc-11.2.1-2.2.el9