mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-06 12:09:26 +08:00
6785fd72d5
I was looking at dos_message and wondering why we have H_PUT_32 in _bfd_XXi_only_swap_filehdr_out but no H_GET_32 in pe_bfd_object_p. On a big-endian machine this would result in scrambling the code and strings constained in dos_message. Rather than fix the lack of H_GET_32 in pe_bfd_object_p, I decided it doesn't make sense to store dos_message internally as an array of ints. include/ * coff/internal.h (struct internal_extra_pe_filehdr): Make dos_message a char array. * coff/msdos.h (struct external_DOS_hdr): Flatten dos_message. * coff/pe.h (struct external_PEI_filehdr): Likewise. bfd/ * libcoff-in.h (struct pe_tdata): Make dos_message a char array. * libcoff.h: Regenerate. * peXXigen.c (_bfd_XXi_only_swap_filehdr_out): memcpy dos_message to output. * peicode.h (pe_mkobject): Don't memset already zeroed pe_opthdr. Tidy allocation of tdata.pe_obj_data. Set up dos_message from.. (default_dos_message): ..this. New static array. |
||
---|---|---|
.. | ||
aarch64.h | ||
alpha.h | ||
arm.h | ||
ChangeLog-0415 | ||
ChangeLog-9103 | ||
ecoff.h | ||
external.h | ||
i386.h | ||
ia64.h | ||
internal.h | ||
loongarch64.h | ||
mcore.h | ||
mips.h | ||
msdos.h | ||
pe.h | ||
rs6k64.h | ||
rs6000.h | ||
sh.h | ||
sym.h | ||
symconst.h | ||
ti.h | ||
tic4x.h | ||
tic30.h | ||
tic54x.h | ||
x86_64.h | ||
xcoff.h | ||
z8k.h | ||
z80.h |