The branch main has been updated by jkoshy:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=aac74b708b3dc49466b0fb5365bc2923b7727a1c

commit aac74b708b3dc49466b0fb5365bc2923b7727a1c
Author:     Joseph Koshy <jko...@freebsd.org>
AuthorDate: 2024-12-31 17:53:16 +0000
Commit:     Joseph Koshy <jko...@freebsd.org>
CommitDate: 2024-12-31 19:53:05 +0000

    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
---
 contrib/elftoolchain/libelftc/libelftc_bfdtarget.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/elftoolchain/libelftc/libelftc_bfdtarget.c 
b/contrib/elftoolchain/libelftc/libelftc_bfdtarget.c
index 5bbf89ba78fa..3f2c23708549 100644
--- a/contrib/elftoolchain/libelftc/libelftc_bfdtarget.c
+++ b/contrib/elftoolchain/libelftc/libelftc_bfdtarget.c
@@ -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,

Reply via email to