Bug 1287743
| Summary: | -specs=/usr/lib/rpm/redhat/redhat-hardened-ld breaks -static | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Kamil Dudka <kdudka> |
| Component: | redhat-rpm-config | Assignee: | Florian Festi <ffesti> |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 23 | CC: | ffesti, fweimer, jonathan, moez.roy, pmatilai, praiskup, rjones |
| Target Milestone: | --- | Keywords: | Regression |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-11-08 10:50:14 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: | 1192183 | ||
| Bug Blocks: | 1199775, 1202091 | ||
No reply for two months. Is this package still actively maintained? Marking as duplicate of bug 1343892 which has more information and a possible fix. *** This bug has been marked as a duplicate of bug 1343892 *** *** Bug 1202091 has been marked as a duplicate of this bug. *** |
Description of problem: With -specs=/usr/lib/rpm/redhat/redhat-hardened-ld in LDFLAGS it is no longer possible to statically link the C run-time. I see no way to work around this breakage, except removing -specs=/usr/lib/rpm/redhat/redhat-hardened-ld from LDFLAGS. Version-Release number of selected component (if applicable): redhat-rpm-config-36-1.fc23.noarch Steps to Reproduce: $ printf 'int main() { }\n' | gcc -xc - -static $ printf 'int main() { }\n' | gcc -xc - -static -specs=/usr/lib/rpm/redhat/redhat-hardened-ld /usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/5.1.1/../../../../lib64/libc.a(libc-start.o): relocation R_X86_64_32 against `_dl_starting_up' can not be used when making a shared object; recompile with -fPIC /usr/lib/gcc/x86_64-redhat-linux/5.1.1/../../../../lib64/libc.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status