diff options
Diffstat (limited to 'binutils/objcopy.c')
-rw-r--r-- | binutils/objcopy.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/binutils/objcopy.c b/binutils/objcopy.c index 7ef95c5..83d9e1b 100644 --- a/binutils/objcopy.c +++ b/binutils/objcopy.c @@ -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); } |