diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-06-26 05:11:07 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-06-26 05:11:29 -0700 |
commit | a3aea05a66ec325ddd19b0c8dbe504958a295cd3 (patch) | |
tree | 48a9ccef7ac053c755efcce87e653942fa7a2525 /gas/ChangeLog | |
parent | fd52715cfa77b7e06f4ab5eadfe7946d22180adc (diff) | |
download | gdb-a3aea05a66ec325ddd19b0c8dbe504958a295cd3.zip gdb-a3aea05a66ec325ddd19b0c8dbe504958a295cd3.tar.gz gdb-a3aea05a66ec325ddd19b0c8dbe504958a295cd3.tar.bz2 |
Check unsupported .symver with common symbol
The .symver directive on common symbol creates a new common symbol,
which shouldn't be allowed, similar to alias on common symbol:
$ cat y.S
.comm bar,8,8
.set bar1,bar
$ as -o y.o y.S
y.S: Assembler messages:
y.S:2: Error: `bar1' can't be equated to common symbol 'bar'
$
PR gas/21661
* config/obj-elf.c (obj_elf_symver): Don't allow .symver with
common symbol.
(elf_frob_symbol): Likewise.
* testsuite/gas/elf/elf.exp: Run pr21661.
* testsuite/gas/elf/pr21661.d: New file.
* testsuite/gas/elf/pr21661.s: Likewise.
Diffstat (limited to 'gas/ChangeLog')
-rw-r--r-- | gas/ChangeLog | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index f48280d..6d3281d 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,13 @@ +2017-06-26 H.J. Lu <hongjiu.lu@intel.com> + + PR gas/21661 + * config/obj-elf.c (obj_elf_symver): Don't allow .symver with + common symbol. + (elf_frob_symbol): Likewise. + * testsuite/gas/elf/elf.exp: Run pr21661. + * testsuite/gas/elf/pr21661.d: New file. + * testsuite/gas/elf/pr21661.s: Likewise. + 2017-06-26 Nick Clifton <nickc@redhat.com> * config/tc-arm.c (fpu_any): Only define for ELF based targets. |