[PATCH] Scan for Mach-O start address in LC_MAIN and properly check bfd_mach_o_scan_start_address's return value

Tristan Gingold gingold@adacore.com
Mon Feb 4 12:41:00 GMT 2013


On Feb 4, 2013, at 1:22 PM, Alan Modra wrote:

> On Thu, Jan 31, 2013 at 10:55:23AM +0100, Tristan Gingold wrote:
>> 	* mach-o.c (bfd_mach_o_scan): Call bfd_mach_o_flatten_sections
>> 	earlier.  Fix status checking of bfd_mach_o_scan_start_address.
>> 	(bfd_mach_o_scan_start_address): Handle LC_MAIN.
> 
> Results in 388 regressions for --target=i386-darwin.
> +FAIL: ar symbol table
> +FAIL: ar thin archive
> +FAIL: ar thin archive with nested archive
> +FAIL: nm (no arguments)
> +FAIL: nm -g
> +FAIL: nm -P
> +FAIL: objcopy --reverse-bytes
> +FAIL: objcopy -O srec
> +ERROR: objdump can not recognize bintest.o
> +ERROR: objdump can not recognize bintest.o
> [snip rest]

I will investigate.

Tristan.



More information about the Binutils mailing list