[binutils-gdb] Arm: respect line separators for .symver scrubber special case

Jan Beulich jbeulich@sourceware.org
Fri Aug 9 09:49:57 GMT 2024


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=eb3cc508ee4a95116c4e0e3d288241eeafb18096

commit eb3cc508ee4a95116c4e0e3d288241eeafb18096
Author: Jan Beulich <jbeulich@suse.com>
Date:   Fri Aug 9 11:49:04 2024 +0200

    Arm: respect line separators for .symver scrubber special case
    
    Directives end at "line" (really: statement) separators, not just at
    new-line chars.

Diff:
---
 gas/app.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gas/app.c b/gas/app.c
index a45c03f8384..ddfff71601f 100644
--- a/gas/app.c
+++ b/gas/app.c
@@ -826,7 +826,7 @@ do_scrub_chars (size_t (*get) (char *, size_t), char *tostart, size_t tolen,
 	    {
 	      /* We've read the entire pseudo-op.  If this is the end
 		 of the line, go back to the beginning.  */
-	      if (IS_NEWLINE (ch))
+	      if (IS_NEWLINE (ch) || IS_LINE_SEPARATOR (ch))
 		symver_state = NULL;
 	    }
 	}


More information about the Binutils-cvs mailing list