This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Patch Darwin] minor fixups in section name reading.


this corrects a couple of trivial typos in bfd_mach_o_read_section_32/64.
It also caters for the fact that segment and section names may fill the on-disk field which is not zero-terminated.
So one cannot use them directly as strings.
OK?,
Iain



bfd:


* mach-o.c (bfd_mach_o_make_bfd_section): Make strings from segname, sectname.
(bfd_mach_o_read_section_32): Null-terminate sectname.
(bfd_mach_o_read_section_64): Likewise.


Attachment: 111207-macho-minor-secname-fixes-diff.txt
Description: Text document



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]