diff options
Diffstat (limited to 'bfd/reloc16.c')
-rw-r--r-- | bfd/reloc16.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bfd/reloc16.c b/bfd/reloc16.c index b4087cb..85a39ca 100644 --- a/bfd/reloc16.c +++ b/bfd/reloc16.c @@ -157,6 +157,10 @@ bfd_coff_reloc16_relax_section (abfd, input_section, link_info, again) arelent **reloc_vector = NULL; long reloc_count; + if (link_info->relocatable) + (*link_info->callbacks->einfo) + (_("%P%F: --relax and -r may not be used together\n")); + /* We only do global relaxation once. It is not safe to do it multiple times (see discussion of the "shrinks" array below). */ *again = FALSE; |