libelftc: Fix a typo - FreeBSD's riscv port is little-endian.

This change brings the descriptor for target "elf64-riscv-freebsd"
in line with its documentation.

I missed this somehow when reviewing https://reviews.freebsd.org/D20768.

Reported by: Haowu Ge (on elftoolchain-developers)
Reviewed by: emaste, imp
Differential Revision: https://reviews.freebsd.org/D48271

(cherry picked from commit aac74b708b3dc49466b0fb5365bc2923b7727a1c)
This commit is contained in:
Joseph Koshy 2024-12-31 17:53:16 +00:00 committed by Ed Maste
parent 0e4f9db00d
commit 2dd706b9c4

View file

@ -334,7 +334,7 @@ struct _Elftc_Bfd_Target _libelftc_targets[] = {
{
.bt_name = "elf64-riscv-freebsd",
.bt_type = ETF_ELF,
.bt_byteorder = ELFDATA2MSB,
.bt_byteorder = ELFDATA2LSB,
.bt_elfclass = ELFCLASS64,
.bt_machine = EM_RISCV,
.bt_osabi = ELFOSABI_FREEBSD,