]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gas/testsuite/gas/elf/startof.d
gas: fold symbol table entries generated for .startof.() / .sizeof.()
authorJan Beulich <jbeulich@suse.com>
Fri, 18 Jun 2021 11:51:52 +0000 (13:51 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 18 Jun 2021 11:51:52 +0000 (13:51 +0200)
commit162c6aef1f3a96923e75f0b4ef430822d273465c
tree81686d89de13a729cde555aae7d4b3ac0033005d
parent1fef66b0dcc09c9114100e782ea54594550e8fb7
gas: fold symbol table entries generated for .startof.() / .sizeof.()

When the same such construct is used multiple times in a source file,
there's still no need to emit a separate symbol each time. Under the
assumption that there won't be many of these, use a simple array
lookup method to record previously used symbols.
gas/ChangeLog
gas/expr.c
gas/testsuite/gas/elf/elf.exp
gas/testsuite/gas/elf/startof.d [new file with mode: 0644]
gas/testsuite/gas/elf/startof.s [new file with mode: 0644]