diff options
Diffstat (limited to 'bfd/elf32-xtensa.c')
-rw-r--r-- | bfd/elf32-xtensa.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bfd/elf32-xtensa.c b/bfd/elf32-xtensa.c index 0315c2f..09e81ad 100644 --- a/bfd/elf32-xtensa.c +++ b/bfd/elf32-xtensa.c @@ -6638,6 +6638,10 @@ elf_xtensa_relax_section (bfd *abfd, static bfd_boolean relocations_analyzed = FALSE; xtensa_relax_info *relax_info; + if (link_info->relocatable) + (*link_info->callbacks->einfo) + (_("%P%F: --relax and -r may not be used together\n")); + if (!relocations_analyzed) { /* Do some overall initialization for relaxation. */ |