-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a check for consistent OPTFLAGS usage #341
Comments
This is also done using |
perhaps it could be standardized in some form? |
I'd be happy if it was. All I know about it is from these pages:
Does the SUSE solution look anything like this? |
it is stored in the debuginfo for -record-gcc-switches option that is enabled by default. So we will write extractor for that if that is present it should be stored there even for fedora. The major problem for the fedora is that the project wanted a way to check it even for non-debuginfo packages which would need to be done by gcc plugin. |
@scarabeusiv @msmeissn Might it make sense for SUSE to also adopt the |
why the debiginfo pkgs contain the data even on fedora, we can just scan that and be done with it, it will just not work on the general rpms which is what the fedora tooling alows |
The compiler writes the optflags into the elf section as I said. Our scanner so far was just grepping over the buildlog, and did not use the optflags section. Currently our GCC builds do not support GCC plugins. |
I tested the There was a recent presentation at the GNU Cauldron 2019 about Annobin and they probably also tend to have issues with LTO. Let's see what can they do with that.. |
…anagement#341). The check is based on parsing of debug info and -grecord-gcc-switches compiler option.
(FYI: @nickclifton) |
…anagement#341). The check is based on parsing of debug info and -grecord-gcc-switches compiler option.
…anagement#341). The check is based on parsing of debug info and -grecord-gcc-switches compiler option.
The check is based on parsing of debug info and -grecord-gcc-switches compiler option.
The check is integrated. If it won't work on Fedora please open a new ticket with some solution for that one. |
At SUSE we store the used RPM_OPT_FLAGS / %optflags in a ELF section in the .o files.
A check that verifies / compares the used options with the wanted options would help to identify
files not built with RPM_OPT_FLAGS.
This would spot files compiled without stack-protector, fortify, pointer protections or warnings etc etc
The text was updated successfully, but these errors were encountered: