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 1239761
Summary: | patchelf: FTBFS in rawhide: Tests fail on PIC executables: maximum file size exceeded | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Dennis Gilmore <dennis> | ||||||||
Component: | patchelf | Assignee: | Petr Pisar <ppisar> | ||||||||
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||
Severity: | unspecified | Docs Contact: | |||||||||
Priority: | unspecified | ||||||||||
Version: | rawhide | CC: | jeremy, ppisar | ||||||||
Target Milestone: | --- | ||||||||||
Target Release: | --- | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | Unspecified | ||||||||||
URL: | https://github.com/NixOS/patchelf/issues/47 | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | patchelf-0.8-4.fc23 | Doc Type: | Bug Fix | ||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2015-07-13 08:31:47 UTC | Type: | --- | ||||||||
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: | 1239338 | ||||||||||
Attachments: |
|
Description
Dennis Gilmore
2015-07-05 21:10:44 UTC
Created attachment 1047598 [details]
build.log
Created attachment 1047599 [details]
root.log
Created attachment 1047600 [details]
state.log
Hardended-build Fedora feature makes executables PIC. And patchelf fails selftest on such an executable (see the 'maximum file size exceeded'): $ ../src/patchelf --set-interpreter /oops scratch/set-interpreter-short/simple warning: working around a Linux kernel bug by creating a hole of 18870272 bytes in ‘scratch/set-interpreter-short/simple’ maximum file size exceeded The reproducer is to call configure as: ./configure CFLAGS='-O0 -fPIE' LDFLAGS='-specs=/usr/lib/rpm/redhat/redhat-hardened-ld' CXXFLAGS='-O0 -fPIE' The /usr/lib/rpm/redhat/redhat-hardened-ld contains: *self_spec: + %{!shared:%{!r:-pie}} *link: + -z now Alternatively you can replace LDFLAGS with '-z now' and add '-pie' to LDFLAGS_local variable in tests/Makefile.am (and run autoreconf before ./configure). |