mach-o: reject 64 bit targets when not configured for.
bfd/ * mach-o.c (bfd_mach_o_header_p): Reject 64 bit target when not configured for.
This commit is contained in:
parent
ca148c5ad5
commit
26954155a6
2 changed files with 14 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2014-04-04 Tristan Gingold <gingold@adacore.com>
|
||||
|
||||
* mach-o.c (bfd_mach_o_header_p): Reject 64 bit target when not
|
||||
configured for.
|
||||
|
||||
2014-04-04 Tristan Gingold <gingold@adacore.com>
|
||||
|
||||
* mach-o.c (bfd_mach_o_convert_section_name_to_mach_o): Fix
|
||||
|
|
|
@ -4300,6 +4300,15 @@ bfd_mach_o_header_p (bfd *abfd,
|
|||
if (header.cputype != cputype)
|
||||
goto wrong;
|
||||
}
|
||||
else
|
||||
{
|
||||
#ifndef BFD64
|
||||
/* Do not recognize 64 architectures if not configured for 64bit targets.
|
||||
This could happen only for generic targets. */
|
||||
if (mach_o_wide_p (&header))
|
||||
goto wrong;
|
||||
#endif
|
||||
}
|
||||
|
||||
if (filetype)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue