[Patch Darwin] minor fixups in section name reading.

Iain Sandoe developer@sandoe-acoustics.co.uk
Thu Dec 8 14:18:00 GMT 2011


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.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 111207-macho-minor-secname-fixes-diff.txt
URL: <https://sourceware.org/pipermail/binutils/attachments/20111208/13a09baf/attachment.txt>
-------------- next part --------------



More information about the Binutils mailing list