https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103890
--- Comment #1 from Andreas Schwab <sch...@linux-m68k.org> --- That's because '/\.dynsym/,/^$/' is matching two regions. The first region is the .dynsym section, the second region is starting at the section symbol in the normal symtab. The latter produces the unversioned symbols.