On Fri, 8 Apr 2022 09:30:51 GMT, Andrew Leonard <aleon...@openjdk.org> wrote:
>> Actually, I think that the GNU assembler supports debug prefix mapping. See >> e.g. [this bug report](https://github.com/ocaml/ocaml/issues/10770), >> stating: "With GNU tools, to enable debug prefix map on C source we pass >> -fdebug-prefix-map to cc and --debug-prefix-map to as." >> >> @andrew-m-leonard Can you check if we can pass `--debug-prefix-map` to the >> assembler if on the gcc toolchain, and thus get rid of the relative linking? >> (And oh, speaking of that, the if statement here checks for target OS. It >> should, most likely, have checked for toolchain.) > > @magicus just saw your above post, interesting, i'll add I think gcc -v to my > above testing, to see what gcc is passing through to the actual compile, > apparently using verbose removes anything that gets removed for assembly, > ie.anything that is not relavent I did test with --debug-prefix-map on the assembly cmdline, it just seemed to be ignored, but I will try again ------------- PR: https://git.openjdk.java.net/jdk/pull/8124