* objcopy.c (set_long_section_mode): Check input_bfd is coff
before accessing coff specific fields of bfd.
This commit is contained in:
parent
2d90c72afe
commit
78e82dc3f1
@ -1,3 +1,8 @@
|
||||
2009-05-12 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* objcopy.c (set_long_section_mode): Check input_bfd is coff
|
||||
before accessing coff specific fields of bfd.
|
||||
|
||||
2009-05-09 Dave Korn <dave.korn.cygwin@gmail.com>
|
||||
|
||||
* MAINTAINERS: Add myself as PE/COFF co-maintainer.
|
||||
|
@ -2143,7 +2143,8 @@ set_long_section_mode (bfd *output_bfd, bfd *input_bfd, enum long_section_name_h
|
||||
/* This is only relevant to Coff targets. */
|
||||
if (bfd_get_flavour (output_bfd) == bfd_target_coff_flavour)
|
||||
{
|
||||
if (style == KEEP)
|
||||
if (style == KEEP
|
||||
&& bfd_get_flavour (input_bfd) == bfd_target_coff_flavour)
|
||||
style = bfd_coff_long_section_names (input_bfd) ? ENABLE : DISABLE;
|
||||
bfd_coff_set_long_section_names (output_bfd, style != DISABLE);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user