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
mkbuildinf: Strip fdebug-prefix-map from saved CFLAGS #11545
base: master
Are you sure you want to change the base?
Conversation
|
ping |
|
A gentle ping. |
|
You'll want to update this to also handle -fmacro-prefix-map and -ffile-prefix-map (which is a combination of -fdebug-prefix-map and -fmacro-prefix-map). Since Debian's bullseye release, -ffile-prefix-map has been in the defaults that builds using dpkg-buildflags will use. |
|
@sebastianas This seems to be waiting for changes from you |
The saved `CFLAGS' may contain the `-fdebug-prefix-map=' which is used to strip the build path from the debug info. If this information remains recorded then the binary is no longer reproducible if the build directory changes. Replace the recorded CFLAG parameter `-fdebug-prefix-map=$OLD=$NEW" with `-fdebug-prefix-map=<REPRODUCIBLE>'. Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
436f148
to
0287fce
Compare
|
This PR is waiting for the creator to make requested changes but it has not been updated for 30 days. If you have made changes or commented to the reviewer please make sure you re-request a review (see icon in the 'reviewers' section). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that this should either be enabled via a configure option or disabled for debug builds. I'm not sure which is the better choice. Suggestions anyone?
|
What would be the scenario for this to be useful? That would probably make it easier to decide. |
|
This option breaks debuggers. I think that that is a very bad thing to do by default. I know that debuggers can be told the correct source address but I'm confident that a lot of folks wouldn't know how to do this. By making this an enableable (but disabled by default) option, the user is making the choice to break their debugger. Likewise, by not enabling this in debug builds, it's less invasive. |
|
This PR is waiting for the creator to make requested changes but it has not been updated for 30 days. If you have made changes or commented to the reviewer please make sure you re-request a review (see icon in the 'reviewers' section). |
|
This PR is waiting for the creator to make requested changes but it has not been updated for 61 days. If you have made changes or commented to the reviewer please make sure you re-request a review (see icon in the 'reviewers' section). |
The saved
CFLAGSmay contain the-fdebug-prefix-map=which is usedto strip the build path from the debug info. If this information remains
recorded then the binary is no longer reproducible if the build
directory changes.
Replace the recorded CFLAG parameter
-fdebug-prefix-map=$OLD=$NEWwith-fdebug-prefix-map=<REPRODUCIBLE>.Signed-off-by: Sebastian Andrzej Siewior sebastian@breakpoint.cc
Checklist