[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/21661] .symver shouldn't be allowed on common symbol
From: |
cvs-commit at gcc dot gnu.org |
Subject: |
[Bug gas/21661] .symver shouldn't be allowed on common symbol |
Date: |
Mon, 26 Jun 2017 12:12:43 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=21661
--- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot
gnu.org> ---
The master branch has been updated by H.J. Lu <address@hidden>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a3aea05a66ec325ddd19b0c8dbe504958a295cd3
commit a3aea05a66ec325ddd19b0c8dbe504958a295cd3
Author: H.J. Lu <address@hidden>
Date: Mon Jun 26 05:11:07 2017 -0700
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.
--
You are receiving this mail because:
You are on the CC list for the bug.