RFR: 8284661: Reproducible assembly builds without relative linking
Andrew Leonard
aleonard at openjdk.java.net
Wed Apr 13 07:52:14 UTC 2022
On Tue, 12 Apr 2022 08:39:54 GMT, Andrew Haley <aph at openjdk.org> wrote:
> > I excluded all kinds of debuginfo files because I didn't know if they could be made free of absolute paths, and it was out of scope for what I was doing at the time.
>
> GCC, I believe, uses whatever pathname you give to the compiler in the debuginfo. If you give GCC relative pathnames, that's what it emits.
@theRealAph The current strategy is to retain full paths in cmdlines, so that they can be copy & pasted from logs and just invoked, if relative paths are used then you need to be in the right place. Hence instead to achieve relative paths in the debuginfo, we need to use --debug-prefix-map option.
-------------
PR: https://git.openjdk.java.net/jdk/pull/8177
More information about the build-dev
mailing list