[Bug ld/3713] New: Dynamic-list-cpp-typeinfo doesn't handle correctly static variables in a class

2006-12-13 Thread glazzara at gmail dot com
I have the following:
- A library called toto.so where the object Toto is implemented:

class Toto
{
public:
Toto();
static Toto *instance() { return self; }

private:
static Toto *self;
};

- A main.cpp linked against toto.so:
int main()
{
Toto tmp;
std::cout << "Main: Toto::instance() == " << tmp.instance() << std::endl;
return 0;
}

If I build everything like this:
g++ -shared -fPIC -Wl,--dynamic-list-cpp-typeinfo toto.cpp -o libtoto.so
g++ -Wl,--dynamic-list-cpp-typeinfo main.cpp -L. -ltoto

The toto::instance() function returns 0 in the main function.

However, if I build without --dynamic-list-cpp-typeinfo, the toto::instance()
function returns the correct value.

I compiled natively on Linux I386 and I cross compiled for ARM. 
I got the same results on both architectures.

-- 
   Summary: Dynamic-list-cpp-typeinfo doesn't handle correctly
static variables in a class
   Product: binutils
   Version: 2.17
Status: NEW
  Severity: critical
  Priority: P1
 Component: ld
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: glazzara at gmail dot com
CC: bug-binutils at gnu dot org
GCC target triplet: Any


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

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


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/3713] Dynamic-list-cpp-typeinfo doesn't handle correctly static variables in a class

2006-12-13 Thread glazzara at gmail dot com

--- Additional Comments From glazzara at gmail dot com  2006-12-13 12:02 
---
Created an attachment (id=1461)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=1461&action=view)
A small example to reproduce the bug


-- 


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

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


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gas/3712] i386 assembler accepts invalid assembly code

2006-12-13 Thread dwarak dot rajagopal at amd dot com


-- 
   What|Removed |Added

 CC||dwarak dot rajagopal at amd
   ||dot com


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

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


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gas/3712] i386 assembler accepts invalid assembly code

2006-12-13 Thread hjl at lucon dot org

--- Additional Comments From hjl at lucon dot org  2006-12-13 18:03 ---
Fixed by

http://sourceware.org/ml/binutils/2006-12/msg00154.html

-- 
   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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

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


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/3704] ar reports unexpected character in S-record file

2006-12-13 Thread amodra at bigpond dot net dot au

--- Additional Comments From amodra at bigpond dot net dot au  2006-12-14 
03:00 ---
http://sources.redhat.com/ml/binutils-cvs/2006-12/msg00068.html

-- 
   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


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

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


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils