The UnexportMainSymbol uses outputDirectory.file(object.getName()).get().getAsFile(); to create the unexported main symbol object file path. It has the potential of colliding two object files with the same name from different subdirectories. Given the following object files:
The collision.o would end up in the same directory overwriting one of the two files. This bug needs to be confirmed before proceeding to a fix as it was only noticed while reading the code.
The
UnexportMainSymbol
usesoutputDirectory.file(object.getName()).get().getAsFile();
to create the unexported main symbol object file path. It has the potential of colliding two object files with the same name from different subdirectories. Given the following object files:The
collision.o
would end up in the same directory overwriting one of the two files. This bug needs to be confirmed before proceeding to a fix as it was only noticed while reading the code.