bug-binutils
[Top][All Lists]
Advanced

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

[Bug gas/4799] Common symbols not given type STT_COMMON


From: hjl at lucon dot org
Subject: [Bug gas/4799] Common symbols not given type STT_COMMON
Date: 16 Oct 2007 18:22:30 -0000

------- Additional Comments From hjl at lucon dot org  2007-10-16 18:22 -------
The current assembler just ignores

.type   common,%common

by default:

address@hidden gas]$ cat x.s
        .common foo, 1
        .type   foo,%common
address@hidden gas]$ ./as-new -o x.o x.s
address@hidden gas]$ ../binutils/readelf -s x.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: 0000000000000001     1 OBJECT  GLOBAL DEFAULT  COM foo
address@hidden gas]$ 

I am expecting COMMOM type for foo. I think we should add BSF_COMMON to
support STT_COMMON.

-- 


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

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