Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/usr.bin/elf2ecoff



Module Name:    src
Committed By:   tsutsui
Date:           Sun Jan 11 07:46:40 UTC 2026

Modified Files:
        src/usr.bin/elf2ecoff: elf2ecoff.c

Log Message:
elf2ecoff: fix various incorrect byteswap ops

- make sure to use host byte order in debug printfs
- fix incorrect byte swap ops for struct ecoff32_symhdr using
  bswap32_region() (only first two magic and vstamp members are int16_t)
- make sure to use proper host's endian to calclate symbol table size
- don't do byteswap unconditionally for struct ecoff_extsym
  (especially on building as a native tool)

Patch from Steve Rumble on port-mips@:
 https://mail-index.netbsd.org/port-mips/2025/12/06/msg001544.html


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/usr.bin/elf2ecoff/elf2ecoff.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index