diff options
Diffstat (limited to 'binutils/objcopy.c')
-rw-r--r-- | binutils/objcopy.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/binutils/objcopy.c b/binutils/objcopy.c index 6bd9339..f712ffe 100644 --- a/binutils/objcopy.c +++ b/binutils/objcopy.c @@ -3943,7 +3943,7 @@ discard_relocations (bfd *ibfd ATTRIBUTE_UNUSED, asection *isection) /* Wrapper for dealing with --remove-section (-R) command line arguments. A special case is detected here, if the user asks to remove a relocation section (one starting with ".rela." or ".rel.") then this removal must - be done using a different technique. */ + be done using a different technique in a relocatable object. */ static void handle_remove_section_option (const char *section_pattern) @@ -3952,11 +3952,9 @@ handle_remove_section_option (const char *section_pattern) handle_remove_relocations_option (section_pattern + 5); else if (strncmp (section_pattern, ".rel.", 5) == 0) handle_remove_relocations_option (section_pattern + 4); - else - { - find_section_list (section_pattern, TRUE, SECTION_CONTEXT_REMOVE); - sections_removed = TRUE; - } + + find_section_list (section_pattern, TRUE, SECTION_CONTEXT_REMOVE); + sections_removed = TRUE; } /* Copy relocations in input section ISECTION of IBFD to an output |