While working on hotspot/src/os/linux/vm/os_linux.cpp to add new architectures for Zero, I noticed that the identifier strings for PowerPC 64 and PowerPC 64 LE are swapped:
#if defined(VM_LITTLE_ENDIAN)
{EM_PPC64, EM_PPC64, ELFCLASS64, ELFDATA2LSB, (char*)"Power PC 64"},
#else
{EM_PPC64, EM_PPC64, ELFCLASS64, ELFDATA2MSB, (char*)"Power PC 64 LE"},
#endif
The upper entry should have the string "PowerPC 64 LE" and the lower one "PowerPC 64", not vice versa.
#if defined(VM_LITTLE_ENDIAN)
{EM_PPC64, EM_PPC64, ELFCLASS64, ELFDATA2LSB, (char*)"Power PC 64"},
#else
{EM_PPC64, EM_PPC64, ELFCLASS64, ELFDATA2MSB, (char*)"Power PC 64 LE"},
#endif
The upper entry should have the string "PowerPC 64 LE" and the lower one "PowerPC 64", not vice versa.
- relates to
-
JDK-8073139 PPC64: User-visible arch directory and os.arch value on ppc64le cause issues with Java tooling
-
- Resolved
-