Hello all:

I found that the .bt_byteorder in elf64-riscv-freebsd within 
libelftc_bfdtarget.c is inconsistent with the information provided in the man3 
elftc_bfd_find_target.3 manual page. One of them must be incorrect, but I 
cannot determine which one is wrong.

libelftc_bfdtarget.c
318     {
319         .bt_name      = "elf32-riscv",
320         .bt_type      = ETF_ELF,
321         .bt_byteorder = ELFDATA2LSB,
322         .bt_elfclass  = ELFCLASS32,
323         .bt_machine   = EM_RISCV,
324     },
325 
326     {
327         .bt_name      = "elf64-riscv",
328         .bt_type      = ETF_ELF,
329         .bt_byteorder = ELFDATA2LSB,
330         .bt_elfclass  = ELFCLASS64,
331         .bt_machine   = EM_RISCV,
332     },
333 
334     {
335         .bt_name      = "elf64-riscv-freebsd",
336         .bt_type      = ETF_ELF,
337         .bt_byteorder = ELFDATA2MSB,                     <----- here
338         .bt_elfclass  = ELFCLASS64,
339         .bt_machine   = EM_RISCV,
340         .bt_osabi     = ELFOSABI_FREEBSD,
341     },


elftc_bfd_find_target.3
  83 .It Li elf32-riscv Ta ELF Ta LSB Ta 32
  84 .It Li elf64-riscv Ta ELF Ta LSB Ta 64
  85 .It Li elf64-riscv-freebsd Ta ELF Ta LSB Ta 64          <----- here

_______________________________________________
Elftoolchain-developers mailing list
Elftoolchain-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/elftoolchain-developers

Reply via email to