On Wed, 6 Apr 2022 13:30:28 GMT, Andrew Leonard <aleon...@openjdk.org> wrote:

>> This PR fixes the non-deterministic behavior when building on linux with 
>> different userids or within
>> different workspace folders.
>> It fixes the following issues:
>> - MakeZipReproducible.java used to produce reproducible src.zip removes the 
>> optional zip "extra" field containing UID/GID.
>> - When absolute output paths are not allowed, enable the use of 
>> -fdebug-prefix-map to ensure debug symbol info does not contain the top 
>> level workspace folder.
>> - For reproducible builds ensure the gcc random symbol name generator is 
>> seeded using -frandom-seed.
>> - For reproducible builds when producing debug symbols use relative object 
>> paths for library linking to remove absolute MASM object paths.
>> 
>> Signed-off-by: Andrew Leonard <anleo...@redhat.com>
>
> Andrew Leonard has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   Trigger checks

@magicus Hmm, this is interesting, so with gcc 10.3, using -fdebug-prefix-map, 
I am seeing 3 absolute paths for the 3 hotspot assembly files, but note if I do 
a dwarfdump it shows no absolute paths, only the .FILE debuginfo strings have 
the path:

andrew@andrew:~$ strings 
/home/andrew3/jdk/build/linux-aarch64-server-release/images/jdk/lib/server/libjvm.debuginfo
 | grep andrew

-------------

PR: https://git.openjdk.java.net/jdk/pull/8124

Reply via email to