http://sourceware.org/bugzilla/show_bug.cgi?id=14315

             Bug #: 14315
           Summary: Inconsistent .weak and .comm directives
           Product: binutils
           Version: 2.23 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gas
        AssignedTo: unassig...@sourceware.org
        ReportedBy: hjl.to...@gmail.com
    Classification: Unclassified


[hjl@gnu-6 secondary-1]$ cat w1.s
    .weak foobar
    .comm foobar,30
[hjl@gnu-6 secondary-1]$ make w1.o
./as   -o w1.o w1.s
[hjl@gnu-6 secondary-1]$ cat w2.s
    .comm foobar,30
    .weak foobar
[hjl@gnu-6 secondary-1]$ make w2.o
./as   -o w2.o w2.s
w2.s: Assembler messages:
w2.s: Error: symbol `foobar' can not be both weak and common
make: *** [w2.o] Error 1
[hjl@gnu-6 secondary-1]$

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to