bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/21667] New: Global alias of common symbol is silently dropped


From: hjl.tools at gmail dot com
Subject: [Bug gas/21667] New: Global alias of common symbol is silently dropped
Date: Fri, 23 Jun 2017 19:20:07 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=21667

            Bug ID: 21667
           Summary: Global alias of common symbol is silently dropped
           Product: binutils
           Version: 2.29 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gas
          Assignee: unassigned at sourceware dot org
          Reporter: hjl.tools at gmail dot com
  Target Milestone: ---

address@hidden pr21661]$ cat y.S 
        .set    foo1,foo
        .globl  foo1
        .comm   foo,8,8
address@hidden pr21661]$ make y.o
gcc -B./  -c -o y.o y.S
address@hidden pr21661]$ readelf -s y.o

Symbol table '.symtab' contains 5 entries:
   Num:    Value          Size Type    Bind   Vis      Ndx Name
     0: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT  UND 
     1: 0000000000000000     0 SECTION LOCAL  DEFAULT    1 
     2: 0000000000000000     0 SECTION LOCAL  DEFAULT    2 
     3: 0000000000000000     0 SECTION LOCAL  DEFAULT    3 
     4: 0000000000000008     8 OBJECT  GLOBAL DEFAULT  COM foo
address@hidden pr21661]$ 

I am expecting an error, like

address@hidden pr21661]$ cat z.S 
        .set    foo1,foo
        .comm   foo,8,8
address@hidden pr21661]$ make z.o
gcc -B./  -c -o z.o z.S
/tmp/ccUmeC8m.s: Assembler messages:
/tmp/ccUmeC8m.s: Error: Local symbol `foo1' can't be equated to common symbol
`foo'
Makefile:37: recipe for target 'z.o' failed
make: *** [z.o] Error 1
address@hidden pr21661]$

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]