]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Arm: respect line separators for .symver scrubber special case
authorJan Beulich <jbeulich@suse.com>
Fri, 9 Aug 2024 09:49:04 +0000 (11:49 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 9 Aug 2024 09:49:04 +0000 (11:49 +0200)
Directives end at "line" (really: statement) separators, not just at
new-line chars.

gas/app.c

index a45c03f8384f8540a3398dfc0e136259f3040355..ddfff71601f1124431ed31b65a3df7750690c70b 100644 (file)
--- 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;
            }
        }