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 1197501
Summary: | Hardening of C breaks Ada. | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Björn Persson <bjorn> |
Component: | distribution | Assignee: | Václav Pavlín <vpavlin> |
Status: | NEW --- | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | bjorn, ffesti, jonathan, ktdreyer, moez.roy, opensource, pavel, pzhukov, vgodunko |
Target Milestone: | --- | Keywords: | Tracking |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 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: | 1199775 |
Description
Björn Persson
2015-03-01 19:56:28 UTC
I wonder if redhat-rpm-config is the proper component for this bug. But I can't make up my mind between "distribution" and "gcc-gnat". Is cc1_options supposed to affect all language frontends, despite "cc1" in the name? Because otherwise I can't see how this would be a bug in GNAT. If GNAT doesn't have a similar feature, then I suppose someone could submit a feature request to GCC upstream, but until the feature would get implemented it would still be wrong to try to use a nonexistent feature. Would it be possible to fix this using the gnat-srpm-macros? gnat-srpm-macros is only for things that must be present even before BuildRequires fields are processed. If some Ada-specific file or macro is needed, and redhat-rpm-config is the wrong place for it, then it could be placed in fedora-gnat-project-common, but first I'd want to hear a good argument for why it shouldn't be in redhat-rpm-config. It would make sense to keep all the hardening trickery together in a package maintained by someone who knows the ins and outs of GCC well enough to make it work well, and that person isn't me. Discussing *where* to fix it is premature though. First we need to find out *how* to fix it. Changing "cc1_options" to "gnat1_options" did not seem to work when I tried it. The description of "distribution" mentions "bugs in the mechanics of how the distribution is built", which sounds like it might fit, so I'm setting it to "distribution" for now. The problem afaict is that we're not (consistently) building PIC objects. For the C family languages we try to see if the object is destined for an executable or a shared library and pick -fPIC or -fPIE as appropriate. I don't know what the idiomatic way to do that is for gnat, but jamming -fPIC on the end of %Ada_optflags in macros.gnat seems to make a hardened build of mine_detector compile just fine. This bug appears to have been reported against 'rawhide' during the Fedora 23 development cycle. Changing version to '23'. (As we did not run this process for some time, it could affect also pre-Fedora 23 development cycle bugs. We are very sorry. It will help us with cleanup during Fedora 23 End Of Life. Thank you.) More information and reason for this action is here: https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora23 This message is a reminder that Fedora 23 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 23. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '23'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 23 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. This message is a reminder that Fedora 25 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 25. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '25'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 25 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. This bug appears to have been reported against 'rawhide' during the Fedora 28 development cycle. Changing version to '28'. This bug appears to have been reported against 'rawhide' during the Fedora 30 development cycle. Changing version to '30'. This message is a reminder that Fedora 30 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora 30 on 2020-05-26. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '30'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 30 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. This bug appears to have been reported against 'rawhide' during the Fedora 33 development cycle. Changing version to 33. |