[Bug gas/1804] New: Wrong output for 64-bit difference of labels

2005-11-04 Thread danglin at gcc dot gnu dot org
The assembler output for the following label difference is incorrect: .dword L$FE0061-L$FB0061 The order of the two 32-bit words in the 64-bit output are interchanged. This doesn't happen in every label difference. It has something to do with label expressions since outputing the differ

[Bug gas/1804] Wrong output for 64-bit difference of labels

2005-11-04 Thread danglin at gcc dot gnu dot org
--- Additional Comments From danglin at gcc dot gnu dot org 2005-11-04 16:14 --- Created an attachment (id=743) --> (http://sourceware.org/bugzilla/attachment.cgi?id=743&action=view) Assembler testcase. The original assembler output generated by GCC has been hacked a bit. The label xy

[Bug ld/1811] New: ELF linker loads member of archive for common symbol

2005-11-04 Thread hjl at lucon dot org
Unlink COFF linker, ELF link loads member of archive when there is a definition for a common symbol. -- Summary: ELF linker loads member of archive for common symbol Product: binutils Version: 2.17 (HEAD) Status: NEW Severity: normal

[Bug ld/1811] ELF linker loads member of archive for common symbol

2005-11-04 Thread hjl at lucon dot org
--- Additional Comments From hjl at lucon dot org 2005-11-04 21:19 --- Created an attachment (id=744) --> (http://sourceware.org/bugzilla/attachment.cgi?id=744&action=view) A testcase I got [EMAIL PROTECTED] archive]$ make gcc-c -o x.o x.c gcc-c -o foo.o foo.c ar rv libfoo.a fo

Re: DW_AT_high_pc and DW_AT_low_pc zero in DWARF-2 debug info in obje ct file in 64bit world

2005-11-04 Thread Daniel Jacobowitz
On Fri, Nov 04, 2005 at 04:04:05PM +0100, Mlynarik Jan wrote: > Hello, > > We are using a cross compiler for 64 bit Linux on MIPS yosemite. When we > compile c sources with command: > > mips64-linux-gnu-gcc -c -gdwarf-2 -mabi=64 example2.c > > then the values of DW_AT_high_pc and DW_AT_low_pc

Re: ld doesn't warn about undefined symbols

2005-11-04 Thread Daniel Jacobowitz
On Wed, Nov 02, 2005 at 06:01:03PM +0100, Jakub Jermar wrote: > ld (from binutils 2.16) on mipsel doesn't warn about > undefined symbols with elf32-little and binary output > formats (and possibly others). > > When the output format is elf32-tradlittlemips, undefined > symbols are reported as e

[Bug ld/1811] ELF linker loads member of archive for common symbol

2005-11-04 Thread hjl at lucon dot org
--- Additional Comments From hjl at lucon dot org 2005-11-04 21:50 --- The change was introduced by http://sourceware.org/ml/binutils/1999-12/msg00057.html -- What|Removed |Added

[Bug ld/1811] ELF linker loads member of archive for common symbol

2005-11-04 Thread hjl at lucon dot org
--- Additional Comments From hjl at lucon dot org 2005-11-04 21:59 --- According to the comment, the change was made to follow Solaris and HPUX. -- http://sourceware.org/bugzilla/show_bug.cgi?id=1811 --- You are receiving this mail because: --- You are on the CC list for the

[Bug ld/1811] ELF linker loads member of archive for common symbol

2005-11-04 Thread kean at armory dot com
--- Additional Comments From kean at armory dot com 2005-11-05 04:39 --- For the record, I will repost a private mail I had with H.J about this. = Ok I've spent a while staring at that code and thinking about this, and even though you say it is there on purpose, I believe it is

[Bug ld/1811] ELF linker loads member of archive for common symbol

2005-11-04 Thread ian at airs dot com
--- Additional Comments From ian at airs dot com 2005-11-05 05:07 --- Unfortunately it's too simple to allude to the historical handling of common symbols. In a.out linkers when a common symbol appears in an object, and the symbol is defined in an object in an archive, then the object in