[Bug ld/3191] Linker doesn't support DWARF3 DW_FORM_ref_addr

2006-09-19 Thread pinskia at gcc dot gnu dot org


-- 
   What|Removed |Added

 CC||pinskia at gcc dot gnu dot
   ||org


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

--- 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/3191] Linker doesn't support DWARF3 DW_FORM_ref_addr

2006-09-19 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2006-09-20 
06:43 ---
(In reply to comment #8)
> It looks like a gcc bug. See
> 
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29146

No it does not.
What version of GCC did you produce this object file?
And how did you build GCC while you are at that?

-- 


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

--- 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/3230] linker rejects mixed (elf64-big/elf64-sparc) archives.

2006-09-19 Thread pluto at agmk dot net

--- Additional Comments From pluto at agmk dot net  2006-09-20 06:00 ---
(In reply to comment #2)
> When an object file is marked as generic ELF, it shouldn't have any 
processor
> specific data, including relocations. exception.o is a generic ELF object
> with relocations. Linker doesn't know how to process those relocations.

i'll look deeper into boost build at sparc64 and try to see what's happen.


-- 


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

--- 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/3191] Linker doesn't support DWARF3 DW_FORM_ref_addr

2006-09-19 Thread pluto at agmk dot net

--- Additional Comments From pluto at agmk dot net  2006-09-20 05:50 ---
(In reply to comment #7)
> A patch is posted at
> 
> http://sourceware.org/ml/binutils/2006-09/msg00187.html

i'll test it today...


-- 


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

--- 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/3191] Linker doesn't support DWARF3 DW_FORM_ref_addr

2006-09-19 Thread pluto at agmk dot net

--- Additional Comments From pluto at agmk dot net  2006-09-20 05:49 ---
(In reply to comment #8)
> It looks like a gcc bug. See
> 
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29146

i don't think so. `-gdwarf-2' option allows gcc to use dwarf3 features.


-- 


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

--- 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/3191] Linker doesn't support DWARF3 DW_FORM_ref_addr

2006-09-19 Thread hjl at lucon dot org

--- Additional Comments From hjl at lucon dot org  2006-09-20 05:28 ---
It looks like a gcc bug. See

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29146

-- 
   What|Removed |Added

Summary|Linker failed to handle |Linker doesn't support
   |DW_FORM_ref_addr properly   |DWARF3 DW_FORM_ref_addr


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

--- 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/3191] Linker failed to handle DW_FORM_ref_addr properly

2006-09-19 Thread hjl at lucon dot org

--- Additional Comments From hjl at lucon dot org  2006-09-20 04:37 ---
A patch is posted at

http://sourceware.org/ml/binutils/2006-09/msg00187.html

-- 
   What|Removed |Added

 Status|REOPENED|WAITING
Summary|ld: Dwarf Error:|Linker failed to handle
   |DW_FORM_strp offset X   |DW_FORM_ref_addr properly
   |greater than or equal to|
   |.debug_str size Y.  |


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

--- 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/3191] ld: Dwarf Error: DW_FORM_strp offset X greater than or equal to .debug_str size Y.

2006-09-19 Thread hjl at lucon dot org

--- Additional Comments From hjl at lucon dot org  2006-09-19 23:01 ---
Please also provide the preprocessed source and assembly code.

-- 


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

--- 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/3230] linker rejects mixed (elf64-big/elf64-sparc) archives.

2006-09-19 Thread hjl at lucon dot org

--- Additional Comments From hjl at lucon dot org  2006-09-19 22:57 ---
When an object file is marked as generic ELF, it shouldn't have any processor
specific data, including relocations. exception.o is a generic ELF object
with relocations. Linker doesn't know how to process those relocations.

-- 
   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID


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

--- 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/3223] ld fails to link correct variables from linker script.

2006-09-19 Thread sjo at anglia dot com

--- Additional Comments From sjo at anglia dot com  2006-09-19 08:31 ---
with nothing declared in the data section i would expect the __data_start and
_edata to be 0x2000. however _edata is 0x12C.

The behaviour is correct in binutils 2.16.1 and if a variable is declared.

-- 


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

--- 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/3191] ld: Dwarf Error: DW_FORM_strp offset X greater than or equal to .debug_str size Y.

2006-09-19 Thread pluto at agmk dot net

--- Additional Comments From pluto at agmk dot net  2006-09-19 08:27 ---
(In reply to comment #3)

> $ g++ -o /dev/null .libs/client.o
> (...)
> /usr/bin/ld: Dwarf Error: DW_FORM_strp offset (685178) greater than or equal 
> to .debug_str size (27238).
> /usr/bin/ld: Dwarf Error: DW_FORM_strp offset (685178) greater than or equal 
> to .debug_str size (27238).
> (...)

the testcase was build with cxxflags:
`-O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-2 -g2 
-feliminate-dwarf2-dups'


-- 


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

--- 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/3191] ld: Dwarf Error: DW_FORM_strp offset X greater than or equal to .debug_str size Y.

2006-09-19 Thread pluto at agmk dot net

--- Additional Comments From pluto at agmk dot net  2006-09-19 08:24 ---
Created an attachment (id=1306)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=1306&action=view)
testcase


-- 


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

--- 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/3191] ld: Dwarf Error: DW_FORM_strp offset X greater than or equal to .debug_str size Y.

2006-09-19 Thread pluto at agmk dot net

--- Additional Comments From pluto at agmk dot net  2006-09-19 08:23 ---
strictly the segv dissaperd but the linker still exists.
now i have a opensource testcase (a part of kdesvn build).

$ g++ -o /dev/null .libs/client.o
(...)
/usr/bin/ld: Dwarf Error: DW_FORM_strp offset (685178) greater than or equal 
to .debug_str size (27238).
/usr/bin/ld: Dwarf Error: DW_FORM_strp offset (685178) greater than or equal 
to .debug_str size (27238).
(...)


-- 
   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|INVALID |
Summary|segmentation fault in   |ld: Dwarf Error:
   |read_unsigned_leb128()  |DW_FORM_strp offset X
   ||greater than or equal to
   ||.debug_str size Y.


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

--- 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/3230] New: linker rejects mixed (elf64-big/elf64-sparc) archives.

2006-09-19 Thread pluto at agmk dot net
$ sparc64-sun-solaris2.9-g++ -o /dev/null -Wl,--whole-archive 
libboost_filesystem.a
/local/devel/toolchain41/sparc64-sun-solaris2.9/lib/gcc/sparc64-sun-solaris2.9/4.1.2/../../../../sparc64-sun-solaris2.9/bin/ld:
 
libboost_filesystem.a(exception.o): Relocations in generic ELF (EM: 0)
/local/devel/toolchain41/sparc64-sun-solaris2.9/lib/gcc/sparc64-sun-solaris2.9/4.1.2/../../../../sparc64-sun-solaris2.9/bin/ld:
 
libboost_filesystem.a(exception.o): Relocations in generic ELF (EM: 0)
/local/devel/toolchain41/sparc64-sun-solaris2.9/lib/gcc/sparc64-sun-solaris2.9/4.1.2/../../../../sparc64-sun-solaris2.9/bin/ld:
 
libboost_filesystem.a(exception.o): Relocations in generic ELF (EM: 0)
/local/devel/toolchain41/sparc64-sun-solaris2.9/lib/gcc/sparc64-sun-solaris2.9/4.1.2/../../../../sparc64-sun-solaris2.9/bin/ld:
 
libboost_filesystem.a(exception.o): Relocations in generic ELF (EM: 0)
/local/devel/toolchain41/sparc64-sun-solaris2.9/lib/gcc/sparc64-sun-solaris2.9/4.1.2/../../../../sparc64-sun-solaris2.9/bin/ld:
 
libboost_filesystem.a(exception.o): Relocations in generic ELF (EM: 0)
/local/devel/toolchain41/sparc64-sun-solaris2.9/lib/gcc/sparc64-sun-solaris2.9/4.1.2/../../../../sparc64-sun-solaris2.9/bin/ld:
 
libboost_filesystem.a(exception.o): Relocations in generic ELF (EM: 0)
/local/devel/toolchain41/sparc64-sun-solaris2.9/lib/gcc/sparc64-sun-solaris2.9/4.1.2/../../../../sparc64-sun-solaris2.9/bin/ld:
 
libboost_filesystem.a(exception.o): Relocations in generic ELF (EM: 0)
/local/devel/toolchain41/sparc64-sun-solaris2.9/lib/gcc/sparc64-sun-solaris2.9/4.1.2/../../../../sparc64-sun-solaris2.9/bin/ld:
 
libboost_filesystem.a(exception.o): Relocations in generic ELF (EM: 0)
/local/devel/toolchain41/sparc64-sun-solaris2.9/lib/gcc/sparc64-sun-solaris2.9/4.1.2/../../../../sparc64-sun-solaris2.9/bin/ld:
 
libboost_filesystem.a(exception.o): Relocations in generic ELF (EM: 0)
/local/devel/toolchain41/sparc64-sun-solaris2.9/lib/gcc/sparc64-sun-solaris2.9/4.1.2/../../../../sparc64-sun-solaris2.9/bin/ld:
 
libboost_filesystem.a(exception.o): Relocations in generic ELF (EM: 0)
/local/devel/toolchain41/sparc64-sun-solaris2.9/lib/gcc/sparc64-sun-solaris2.9/4.1.2/../../../../sparc64-sun-solaris2.9/bin/ld:
 
libboost_filesystem.a(exception.o): Relocations in generic ELF (EM: 0)
/local/devel/toolchain41/sparc64-sun-solaris2.9/lib/gcc/sparc64-sun-solaris2.9/4.1.2/../../../../sparc64-sun-solaris2.9/bin/ld:
 
libboost_filesystem.a(exception.o): Relocations in generic ELF (EM: 0)
/local/devel/toolchain41/sparc64-sun-solaris2.9/lib/gcc/sparc64-sun-solaris2.9/4.1.2/../../../../sparc64-sun-solaris2.9/bin/ld:
 
libboost_filesystem.a(exception.o): Relocations in generic ELF (EM: 0)
/local/devel/toolchain41/sparc64-sun-solaris2.9/lib/gcc/sparc64-sun-solaris2.9/4.1.2/../../../../sparc64-sun-solaris2.9/bin/ld:
 
libboost_filesystem.a(exception.o): Relocations in generic ELF (EM: 0)
/local/devel/toolchain41/sparc64-sun-solaris2.9/lib/gcc/sparc64-sun-solaris2.9/4.1.2/../../../../sparc64-sun-solaris2.9/bin/ld:
 
libboost_filesystem.a(exception.o): Relocations in generic ELF (EM: 0)
/local/devel/toolchain41/sparc64-sun-solaris2.9/lib/gcc/sparc64-sun-solaris2.9/4.1.2/../../../../sparc64-sun-solaris2.9/bin/ld:
 
libboost_filesystem.a(exception.o): Relocations in generic ELF (EM: 0)
libboost_filesystem.a(exception.o): could not read symbols: File in wrong 
format
collect2: ld returned 1 exit status

$ file libboost_filesystem/*
libboost_filesystem/convenience.o:  ELF 64-bit MSB relocatable, 
SPARC V9, version 1 (SYSV), not stripped
libboost_filesystem/exception.o:ELF 64-bit MSB relocatable, no 
machine, version 1 (SYSV), not stripped
libboost_filesystem/operations_posix_windows.o: ELF 64-bit MSB relocatable, 
SPARC V9, version 1 (SYSV), not stripped
libboost_filesystem/path_posix_windows.o:   ELF 64-bit MSB relocatable, 
SPARC V9, version 1 (SYSV), not stripped

-- 
   Summary: linker rejects mixed (elf64-big/elf64-sparc) archives.
   Product: binutils
   Version: 2.17
Status: NEW
  Severity: normal
  Priority: P2
 Component: ld
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: pluto at agmk dot net
CC: bug-binutils at gnu dot org
GCC target triplet: sparc64-sun-solaris2.9


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

--- 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/3230] linker rejects mixed (elf64-big/elf64-sparc) archives.

2006-09-19 Thread pluto at agmk dot net

--- Additional Comments From pluto at agmk dot net  2006-09-19 08:15 ---
Created an attachment (id=1305)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=1305&action=view)
testcase


-- 


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

--- 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