[Bug ld/3191] Dwarf 2 reader in linker doesn't suppor DW_FORM_ref_addr

2020-01-30 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=3191

Alan Modra  changed:

   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution|--- |OBSOLETE

--- Comment #44 from Alan Modra  ---
(In reply to d...@false.org from comment #43)
> I've checked in a version of HJ's patch.  But I can't work out what the
> problem
> is in this long bug report, so I'm not sure if it's fixed now.

Nor can I, and this is an ancient bug report, so closing.

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


[Bug ld/3191] Dwarf 2 reader in linker doesn't suppor DW_FORM_ref_addr

2008-09-30 Thread geir at cray dot com


-- 
   What|Removed |Added

 CC||geir at cray dot com


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] Dwarf 2 reader in linker doesn't suppor DW_FORM_ref_addr

2008-09-08 Thread drow at false dot org

--- Additional Comments From drow at false dot org  2008-09-08 23:31 ---
I've checked in a version of HJ's patch.  But I can't work out what the problem
is in this long bug report, so I'm not sure if it's fixed now.

-- 


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] Dwarf 2 reader in linker doesn't suppor DW_FORM_ref_addr

2008-07-29 Thread hjl dot tools at gmail dot com

--- Additional Comments From hjl dot tools at gmail dot com  2008-07-29 
15:41 ---
The current patch is at

http://sourceware.org/ml/binutils/2008-07/msg00361.html

-- 


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] Dwarf 2 reader in linker doesn't suppor DW_FORM_ref_addr

2008-07-23 Thread bjarne dot jensen at se dot transport dot bombardier dot com

--- Additional Comments From bjarne dot jensen at se dot transport dot 
bombardier dot com  2008-07-23 10:21 ---
Created an attachment (id=2836)
 -- (http://sourceware.org/bugzilla/attachment.cgi?id=2836action=view)
gdb crashes because abbrev_offset is incorrect (zero)

While trying to read the DWARF info in a linked object file I encountered a bug
in the compilation unit headers: The abbrev_offset member is always zero.
This causes the debug_info parser to interpret the attributes incorrectly and I
encounter the same symptoms in my parser as this PR describes.
Somehow the linker does not adjust the abbrev_offset in the compilation unit
header when it concatenates the .debug_abbrev sections of the object files.
Unfortunatly I don't have the knowledge to point to where this should happen.
The file org.o in the attachment causes gdb to crash. The file patched.o is OK.

The Makefile in the attached archive contains more info.

-- 


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] Dwarf 2 reader in linker doesn't suppor DW_FORM_ref_addr

2008-07-23 Thread bjarne dot jensen at se dot transport dot bombardier dot com


-- 
   What|Removed |Added

 CC||bjarne dot jensen at se dot
   ||transport dot bombardier dot
   ||com


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] Dwarf 2 reader in linker doesn't suppor DW_FORM_ref_addr

2008-07-23 Thread hjl dot tools at gmail dot com

--- Additional Comments From hjl dot tools at gmail dot com  2008-07-23 
11:39 ---
(In reply to comment #36)
 Created an attachment (id=2836)
 -- (http://sourceware.org/bugzilla/attachment.cgi?id=2836action=view)
 gdb crashes because abbrev_offset is incorrect (zero)
 
 While trying to read the DWARF info in a linked object file I encountered a 
 bug
 in the compilation unit headers: The abbrev_offset member is always zero.
 This causes the debug_info parser to interpret the attributes incorrectly and 
 I
 encounter the same symptoms in my parser as this PR describes.
 Somehow the linker does not adjust the abbrev_offset in the compilation unit
 header when it concatenates the .debug_abbrev sections of the object files.
 Unfortunatly I don't have the knowledge to point to where this should happen.
 The file org.o in the attachment causes gdb to crash. The file patched.o is 
 OK.
 
 The Makefile in the attached archive contains more info.

Can you try Linux binutils from

http://www.kernel.org/pub/linux/devel/binutils/

and let me know if it works for you?

-- 


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] Dwarf 2 reader in linker doesn't suppor DW_FORM_ref_addr

2008-07-23 Thread bjarne dot jensen at se dot transport dot bombardier dot com

--- Additional Comments From bjarne dot jensen at se dot transport dot 
bombardier dot com  2008-07-23 12:01 ---
Unfortunatly I only have windows machines at my site.
The versions that I specified in the Makefile are the ones that I can use.

-- 


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] Dwarf 2 reader in linker doesn't suppor DW_FORM_ref_addr

2008-07-23 Thread hjl dot tools at gmail dot com

--- Additional Comments From hjl dot tools at gmail dot com  2008-07-23 
13:57 ---
(In reply to comment #38)
 Unfortunatly I only have windows machines at my site.
 The versions that I specified in the Makefile are the ones that I can use.

You seem to have a problem with gdb, not linker.

-- 


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] Dwarf 2 reader in linker doesn't suppor DW_FORM_ref_addr

2008-07-23 Thread bjarne dot jensen at se dot transport dot bombardier dot com

--- Additional Comments From bjarne dot jensen at se dot transport dot 
bombardier dot com  2008-07-23 14:13 ---
The object file that is generated by the linker in my example already contains 
the erroneous compile unit header, specifically the abbrev_offset is zero.
This is before gdb...

-- 


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] Dwarf 2 reader in linker doesn't suppor DW_FORM_ref_addr

2008-07-23 Thread hjl dot tools at gmail dot com

--- Additional Comments From hjl dot tools at gmail dot com  2008-07-23 
14:17 ---
(In reply to comment #40)
 The object file that is generated by the linker in my example already 
 contains 
 the erroneous compile unit header, specifically the abbrev_offset is zero.
 This is before gdb...

That is a different bug. This bug report is a linker bug where it fails to
generate an output.

-- 


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] Dwarf 2 reader in linker doesn't suppor DW_FORM_ref_addr

2006-09-29 Thread pluto at agmk dot net

--- Additional Comments From pluto at agmk dot net  2006-09-29 08:28 ---
Created an attachment (id=1335)
 -- (http://sourceware.org/bugzilla/attachment.cgi?id=1335action=view)
testcase for c#19


-- 


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] Dwarf 2 reader in linker doesn't suppor DW_FORM_ref_addr

2006-09-29 Thread pluto at agmk dot net

--- Additional Comments From pluto at agmk dot net  2006-09-29 18:37 ---
(In reply to comment #22)
 I hope this patch
 
 http://sourceware.org/ml/binutils/2006-09/msg00389.html
 
 will fix DW_FORM_ref_addr.

heh, now i get different errors ;)

/usr/lib/liveMedia/liveMedia/libliveMedia.a: In function 
`DW.stdio.h.707d408e.1':
(.debug_info+0x694cc): multiple definition of `DW.stdio.h.707d408e.1'
codec-cfg.o:/home/users/builder/rpm/BUILD/MPlayer-1.0pre8/codec-cfg.c:837: 
first defined here
/usr/lib/liveMedia/liveMedia/libliveMedia.a: In function 
`DW.libio.h.1b123e95.4':
(.debug_info+0x6924d): multiple definition of `DW.libio.h.1b123e95.4'
mplayer.o:/home/users/builder/rpm/BUILD/MPlayer-1.0pre8/fifo.c:58: first 
defined here
/usr/lib/liveMedia/liveMedia/libliveMedia.a: In function 
`DW.libio.h.1b123e95.8':
(.debug_info+0x69297): multiple definition of `DW.libio.h.1b123e95.8'
mplayer.o:/home/users/builder/rpm/BUILD/MPlayer-1.0pre8/mplayer.c:815: first 
defined here
/usr/lib/liveMedia/liveMedia/libliveMedia.a: In function 
`DW.types.h.7690f9fc.2':
(.debug_info+0x692ca): multiple definition of `DW.types.h.7690f9fc.2'
m_property.o:/home/users/builder/rpm/BUILD/MPlayer-1.0pre8/m_property.c:181: 
first defined here
/usr/lib/liveMedia/liveMedia/libliveMedia.a: In function 
`DW.libio.h.1b123e95.5':
(.debug_info+0x69254): multiple definition of `DW.libio.h.1b123e95.5'
mplayer.o:/home/users/builder/rpm/BUILD/MPlayer-1.0pre8/fifo.c:58: first 
defined here
/usr/lib/liveMedia/liveMedia/libliveMedia.a: In function 
`DW.libio.h.1b123e95.1':
(.debug_info+0x69237): multiple definition of `DW.libio.h.1b123e95.1'
mplayer.o:/home/users/builder/rpm/BUILD/MPlayer-1.0pre8/fifo.c:56: first 
defined here
/usr/lib/liveMedia/liveMedia/libliveMedia.a: In function 
`DW.stdio.h.707d408e.0':
(.debug_info+0x6930c): multiple definition of `DW.stdio.h.707d408e.0'
codec-cfg.o:/home/users/builder/rpm/BUILD/MPlayer-1.0pre8/codec-cfg.c:849: 
first defined here
/usr/lib/liveMedia/liveMedia/libliveMedia.a: In function 
`DW.types.h.7690f9fc.1':
(.debug_info+0x692bf): multiple definition of `DW.types.h.7690f9fc.1'
m_property.o:/home/users/builder/rpm/BUILD/MPlayer-1.0pre8/m_property.c:178: 
first defined here
/usr/lib/liveMedia/liveMedia/libliveMedia.a: In function 
`DW.stddef.h.b8447100.0':
(.debug_info+0x692eb): multiple definition of `DW.stddef.h.b8447100.0'
mplayer.o:/home/users/builder/rpm/BUILD/MPlayer-1.0pre8/fifo.c:60: first 
defined here
/usr/lib/liveMedia/liveMedia/libliveMedia.a: In function 
`DW.libio.h.1b123e95.2':
(.debug_info+0x6923e): multiple definition of `DW.libio.h.1b123e95.2'
mplayer.o:/home/users/builder/rpm/BUILD/MPlayer-1.0pre8/fifo.c:56: first 
defined here
/usr/lib/liveMedia/liveMedia/libliveMedia.a: In function 
`DW.libio.h.1b123e95.6':
(.debug_info+0x6925a): multiple definition of `DW.libio.h.1b123e95.6'
mplayer.o:/home/users/builder/rpm/BUILD/MPlayer-1.0pre8/mplayer.c:778: first 
defined here
/usr/lib/liveMedia/liveMedia/libliveMedia.a: In function 
`DW.types.h.7690f9fc.0':
(.debug_info+0x692b4): multiple definition of `DW.types.h.7690f9fc.0'
m_property.o:/home/users/builder/rpm/BUILD/MPlayer-1.0pre8/m_property.c:177: 
first defined here
/usr/lib/liveMedia/groupsock/libgroupsock.a: In function `OutputSocket':
/usr/src/debug/live/groupsock/Groupsock.cpp:42: multiple definition of 
`DW.libio.h.1391221f.4'
libmpdemux/libmpdemux.a(cdda.o):/home/users/builder/rpm/BUILD/MPlayer-1.0pre8/libmpdemux/cdda.c:114:
 
first defined here
/usr/lib/liveMedia/groupsock/libgroupsock.a: In function `destRecord':
/usr/src/debug/live/groupsock/Groupsock.cpp:93: multiple definition of 
`DW.stdio.h.17280916.0'
m_property.o:/home/users/builder/rpm/BUILD/MPlayer-1.0pre8/m_property.c:177: 
first defined here
/usr/lib/liveMedia/groupsock/libgroupsock.a: In function `OutputSocket':
/usr/src/debug/live/groupsock/Groupsock.cpp:42: multiple definition of 
`DW.libio.h.1391221f.2'
libmpdemux/libmpdemux.a(cdda.o):/home/users/builder/rpm/BUILD/MPlayer-1.0pre8/libmpdemux/cdda.c:103:
 
first defined here
/usr/lib/liveMedia/groupsock/libgroupsock.a: In function 
`DW.stdint.h.aff98527.0':
/usr/src/debug/live/groupsock/Groupsock.cpp:249: multiple definition of 
`DW.stdint.h.aff98527.0'
m_option.o:/home/users/builder/rpm/BUILD/MPlayer-1.0pre8/m_option.c:747: first 
defined here
/usr/lib/liveMedia/groupsock/libgroupsock.a: In function `DW.in.h.e0f16a15.0':
/usr/src/debug/live/groupsock/Groupsock.cpp:248: multiple definition of 
`DW.in.h.e0f16a15.0'
libmpdemux/libmpdemux.a(cdda.o):/home/users/builder/rpm/BUILD/MPlayer-1.0pre8/libmpdemux/cdda.c:102:
 
first defined here
/usr/lib/liveMedia/groupsock/libgroupsock.a: In function 
`unsetGroupsockBySocket':
/usr/src/debug/live/groupsock/Groupsock.cpp:485: multiple definition of 
`DW.types.h.7690f9fc.2'
m_property.o:/home/users/builder/rpm/BUILD/MPlayer-1.0pre8/m_property.c:181: 
first defined here
/usr/lib/liveMedia/groupsock/libgroupsock.a: In function `OutputSocket':

[Bug ld/3191] Dwarf 2 reader in linker doesn't suppor DW_FORM_ref_addr

2006-09-29 Thread hjl at lucon dot org

--- Additional Comments From hjl at lucon dot org  2006-09-29 18:46 ---
I think that i(In reply to comment #23)
 (In reply to comment #22)
  I hope this patch
  
  http://sourceware.org/ml/binutils/2006-09/msg00389.html
  
  will fix DW_FORM_ref_addr.
 
 heh, now i get different errors ;)
 
 /usr/lib/liveMedia/liveMedia/libliveMedia.a: In function 
 `DW.stdio.h.707d408e.1':
 (.debug_info+0x694cc): multiple definition of `DW.stdio.h.707d408e.1'
 codec-cfg.o:/home/users/builder/rpm/BUILD/MPlayer-1.0pre8/codec-cfg.c:837: 
 first defined here
 /usr/lib/liveMedia/liveMedia/libliveMedia.a: In function 
 `DW.libio.h.1b123e95.4':
 (.debug_info+0x6924d): multiple definition of `DW.libio.h.1b123e95.4'
 mplayer.o:/home/users/builder/rpm/BUILD/MPlayer-1.0pre8/fifo.c:58: first 
 defined here
 /usr/lib/liveMedia/liveMedia/libliveMedia.a: In function 
 `DW.libio.h.1b123e95.8':
 (.debug_info+0x69297): multiple definition of `DW.libio.h.1b123e95.8'
 mplayer.o:/home/users/builder/rpm/BUILD/MPlayer-1.0pre8/mplayer.c:815: first 
 defined here
 /usr/lib/liveMedia/liveMedia/libliveMedia.a: In function 
 `DW.types.h.7690f9fc.2':
 (.debug_info+0x692ca): multiple definition of `DW.types.h.7690f9fc.2'
 m_property.o:/home/users/builder/rpm/BUILD/MPlayer-1.0pre8/m_property.c:181: 
 first defined here
 /usr/lib/liveMedia/liveMedia/libliveMedia.a: In function 
 `DW.libio.h.1b123e95.5':
 (.debug_info+0x69254): multiple definition of `DW.libio.h.1b123e95.5'
 mplayer.o:/home/users/builder/rpm/BUILD/MPlayer-1.0pre8/fifo.c:58: first 
 defined here
 /usr/lib/liveMedia/liveMedia/libliveMedia.a: In function 
 `DW.libio.h.1b123e95.1':
 (.debug_info+0x69237): multiple definition of `DW.libio.h.1b123e95.1'
 mplayer.o:/home/users/builder/rpm/BUILD/MPlayer-1.0pre8/fifo.c:56: first 
 defined here
 /usr/lib/liveMedia/liveMedia/libliveMedia.a: In function 
 `DW.stdio.h.707d408e.0':
 (.debug_info+0x6930c): multiple definition of `DW.stdio.h.707d408e.0'
 codec-cfg.o:/home/users/builder/rpm/BUILD/MPlayer-1.0pre8/codec-cfg.c:849: 
 first defined here
 /usr/lib/liveMedia/liveMedia/libliveMedia.a: In function 
 `DW.types.h.7690f9fc.1':
 (.debug_info+0x692bf): multiple definition of `DW.types.h.7690f9fc.1'
 m_property.o:/home/users/builder/rpm/BUILD/MPlayer-1.0pre8/m_property.c:178: 
 first defined here
 /usr/lib/liveMedia/liveMedia/libliveMedia.a: In function 
 `DW.stddef.h.b8447100.0':
 (.debug_info+0x692eb): multiple definition of `DW.stddef.h.b8447100.0'
 mplayer.o:/home/users/builder/rpm/BUILD/MPlayer-1.0pre8/fifo.c:60: first 
 defined here
 /usr/lib/liveMedia/liveMedia/libliveMedia.a: In function 
 `DW.libio.h.1b123e95.2':
 (.debug_info+0x6923e): multiple definition of `DW.libio.h.1b123e95.2'
 mplayer.o:/home/users/builder/rpm/BUILD/MPlayer-1.0pre8/fifo.c:56: first 
 defined here
 /usr/lib/liveMedia/liveMedia/libliveMedia.a: In function 
 `DW.libio.h.1b123e95.6':
 (.debug_info+0x6925a): multiple definition of `DW.libio.h.1b123e95.6'
 mplayer.o:/home/users/builder/rpm/BUILD/MPlayer-1.0pre8/mplayer.c:778: first 
 defined here
 /usr/lib/liveMedia/liveMedia/libliveMedia.a: In function 
 `DW.types.h.7690f9fc.0':
 (.debug_info+0x692b4): multiple definition of `DW.types.h.7690f9fc.0'
 m_property.o:/home/users/builder/rpm/BUILD/MPlayer-1.0pre8/m_property.c:177: 
 first defined here
 /usr/lib/liveMedia/groupsock/libgroupsock.a: In function `OutputSocket':
 /usr/src/debug/live/groupsock/Groupsock.cpp:42: multiple definition of 
 `DW.libio.h.1391221f.4'

libmpdemux/libmpdemux.a(cdda.o):/home/users/builder/rpm/BUILD/MPlayer-1.0pre8/libmpdemux/cdda.c:114:

 first defined here
 /usr/lib/liveMedia/groupsock/libgroupsock.a: In function `destRecord':
 /usr/src/debug/live/groupsock/Groupsock.cpp:93: multiple definition of 
 `DW.stdio.h.17280916.0'
 m_property.o:/home/users/builder/rpm/BUILD/MPlayer-1.0pre8/m_property.c:177: 
 first defined here
 /usr/lib/liveMedia/groupsock/libgroupsock.a: In function `OutputSocket':
 /usr/src/debug/live/groupsock/Groupsock.cpp:42: multiple definition of 
 `DW.libio.h.1391221f.2'

libmpdemux/libmpdemux.a(cdda.o):/home/users/builder/rpm/BUILD/MPlayer-1.0pre8/libmpdemux/cdda.c:103:

 first defined here
 /usr/lib/liveMedia/groupsock/libgroupsock.a: In function 
 `DW.stdint.h.aff98527.0':
 /usr/src/debug/live/groupsock/Groupsock.cpp:249: multiple definition of 
 `DW.stdint.h.aff98527.0'
 m_option.o:/home/users/builder/rpm/BUILD/MPlayer-1.0pre8/m_option.c:747: 
 first 
 defined here
 /usr/lib/liveMedia/groupsock/libgroupsock.a: In function `DW.in.h.e0f16a15.0':
 /usr/src/debug/live/groupsock/Groupsock.cpp:248: multiple definition of 
 `DW.in.h.e0f16a15.0'

libmpdemux/libmpdemux.a(cdda.o):/home/users/builder/rpm/BUILD/MPlayer-1.0pre8/libmpdemux/cdda.c:102:

 first defined here
 /usr/lib/liveMedia/groupsock/libgroupsock.a: In function 
 `unsetGroupsockBySocket':
 /usr/src/debug/live/groupsock/Groupsock.cpp:485: multiple definition of 
 `DW.types.h.7690f9fc.2'
 

[Bug ld/3191] Dwarf 2 reader in linker doesn't suppor DW_FORM_ref_addr

2006-09-29 Thread pluto at agmk dot net

--- Additional Comments From pluto at agmk dot net  2006-09-29 18:53 ---
(In reply to comment #24)

 I think that is PR 3249. Do you have
 
 http://sourceware.org/ml/binutils/2006-09/msg00247.html

i'm using binutils-2.17.50.0.5 with current patch for PR3191.


-- 


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] Dwarf 2 reader in linker doesn't suppor DW_FORM_ref_addr

2006-09-29 Thread hjl at lucon dot org

--- Additional Comments From hjl at lucon dot org  2006-09-29 18:55 ---
(In reply to comment #25)
 (In reply to comment #24)
 
  I think that is PR 3249. Do you have
  
  http://sourceware.org/ml/binutils/2006-09/msg00247.html
 
 i'm using binutils-2.17.50.0.5 with current patch for PR3191.
 

Have you rebuilt everthing with binutils-2.17.50.0.5?


-- 


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] Dwarf 2 reader in linker doesn't suppor DW_FORM_ref_addr

2006-09-29 Thread pluto at agmk dot net

--- Additional Comments From pluto at agmk dot net  2006-09-29 19:12 ---
(In reply to comment #26)
 (In reply to comment #25)
  (In reply to comment #24)
  
   I think that is PR 3249. Do you have
   
   http://sourceware.org/ml/binutils/2006-09/msg00247.html
  
  i'm using binutils-2.17.50.0.5 with current patch for PR3191.
  
 
 Have you rebuilt everthing with binutils-2.17.50.0.5?

after rebuilding the static liveMedia libs and mplayer i get only this
during final mplayer linking:

(...)
MPlayer-1.0pre8/libmpeg2/decode.c:117:
  multiple definition of `DW.types.h.a34a5b93.0'
MPlayer-1.0pre8/libmpeg2/decode.c:119:
 multiple definition of `DW.types.h.a34a5b93.1'
collect2: ld returned 1 exit status


-- 


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] Dwarf 2 reader in linker doesn't suppor DW_FORM_ref_addr

2006-09-29 Thread pluto at agmk dot net

--- Additional Comments From pluto at agmk dot net  2006-09-29 19:15 ---
Created an attachment (id=1336)
 -- (http://sourceware.org/bugzilla/attachment.cgi?id=1336action=view)
x86-64 testcase for c#27


-- 


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] Dwarf 2 reader in linker doesn't suppor DW_FORM_ref_addr

2006-09-29 Thread pluto at agmk dot net

--- Additional Comments From pluto at agmk dot net  2006-09-29 19:23 ---
i can see theses symbols in two places: decored.o and header.o.

[MPlayer-1.0pre8]$ grep DW.types.h.a34a5b93.0 libmpeg2/* -R

Binary file libmpeg2/decode.o matches
libmpeg2/decode.s:  .quad   DW.types.h.a34a5b93.0
libmpeg2/decode.s:.globl DW.types.h.a34a5b93.0
libmpeg2/decode.s:DW.types.h.a34a5b93.0:

Binary file libmpeg2/header.o matches
libmpeg2/header.s:  .quad   DW.types.h.a34a5b93.0
libmpeg2/header.s:.globl DW.types.h.a34a5b93.0
libmpeg2/header.s:DW.types.h.a34a5b93.0:

Binary file libmpeg2/libmpeg2.a matches


-- 


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] Dwarf 2 reader in linker doesn't suppor DW_FORM_ref_addr

2006-09-29 Thread hjl at lucon dot org

--- Additional Comments From hjl at lucon dot org  2006-09-29 19:26 ---

(In reply to comment #29)
 i can see theses symbols in two places: decored.o and header.o.
 
 [MPlayer-1.0pre8]$ grep DW.types.h.a34a5b93.0 libmpeg2/* -R
 
 Binary file libmpeg2/decode.o matches
 libmpeg2/decode.s:  .quad   DW.types.h.a34a5b93.0
 libmpeg2/decode.s:.globl DW.types.h.a34a5b93.0
 libmpeg2/decode.s:DW.types.h.a34a5b93.0:
 
 Binary file libmpeg2/header.o matches
 libmpeg2/header.s:  .quad   DW.types.h.a34a5b93.0
 libmpeg2/header.s:.globl DW.types.h.a34a5b93.0
 libmpeg2/header.s:DW.types.h.a34a5b93.0:
 
 Binary file libmpeg2/libmpeg2.a matches
 

Please provide header.s and header.i. It may be a gcc bug.

-- 


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] Dwarf 2 reader in linker doesn't suppor DW_FORM_ref_addr

2006-09-29 Thread pluto at agmk dot net

--- Additional Comments From pluto at agmk dot net  2006-09-29 19:33 ---
Created an attachment (id=1337)
 -- (http://sourceware.org/bugzilla/attachment.cgi?id=1337action=view)
x86-64 testcase for c#27


-- 


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] Dwarf 2 reader in linker doesn't suppor DW_FORM_ref_addr

2006-09-29 Thread hjl at lucon dot org

--- Additional Comments From hjl at lucon dot org  2006-09-29 19:38 ---
They look OK. I need to see your complete linker messages.

-- 


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] Dwarf 2 reader in linker doesn't suppor DW_FORM_ref_addr

2006-09-29 Thread pluto at agmk dot net

--- Additional Comments From pluto at agmk dot net  2006-09-29 19:40 ---
(In reply to comment #32)
 They look OK. I need to see your complete linker messages.

[EMAIL PROTECTED] ~/rpm/SPECS]$ cd ../BUILD/MPlayer-1.0pre8
[EMAIL PROTECTED] ~/rpm/BUILD/MPlayer-1.0pre8]$ make
x86_64-pld-linux-gcc -I../libvo -I../../libvo  -O2 -fno-strict-aliasing -fwrapv 
-march=x86-64 -gdwarf-2 -g2 -feliminate-dwarf2-dups  -D_REENTRANT 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/xvid 
-I/usr/include/liveMedia -I. -I/usr/include/   -I/usr/include/xvid 
-I/usr/include/liveMedia  -I/usr/include/freetype2 -I/usr/include 
-I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT-I./libavutil -I./libavcodec 
  -o 
mplayer mplayer.o m_property.o mp_msg.o asxparser.o codec-cfg.o cpudetect.o 
edl.o find_sub.o m_config.o m_option.o m_struct.o parser-cfg.o playtree.o 
playtreeparser.o spudec.o sub_cc.o subreader.o vobsub.o unrarlib.o mixer.o 
parser-mpcmd.o subopt-helper.o libvo/libvo.a libao2/libao2.a input/libinput.a 
libmenu/libmenu.a vidix/libvidix.a Gui/libgui.a libmpcodecs/libmpcodecs.a   
libaf/libaf.a libmpdemux/libmpdemux.a postproc/libswscale.a 
osdep/libosdep.a -Llibmpdvdkit2 -lmpdvdkit libavcodec/libavcodec.a  
libavformat/libavformat.a  libavutil/libavutil.a  
libpostproc/libpostproc.a  -lmad -ldv -ltheora -logg   -lfaad  -lmp3lame  
-lxvidcore -ldts -lpng -lz -lz -ljpeg -lasound -ldl -lpthread  -lx264 -lpthread 
 -lspeex   -lfaac -lfreetype -lz -lncurses -lcdda_interface -lcdda_paranoia 
/usr/lib64/liveMedia/liveMedia/libliveMedia.a 
/usr/lib64/liveMedia/groupsock/libgroupsock.a 
/usr/lib64/liveMedia/UsageEnvironment/libUsageEnvironment.a 
/usr/lib64/liveMedia/BasicUsageEnvironment/libBasicUsageEnvironment.a -lstdc++  
   -lungif  -lsmbclient -L/usr/lib64 -lfribidi -lfontconfig -lenca  
mp3lib/libMP3.a liba52/liba52.a libmpeg2/libmpeg2.a 
tremor/libvorbisidec.a -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 
-lpangocairo-1.0 -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXfixes 
-lcairo -lpangoft2-1.0 -lfontconfig -lfreetype -lz -lpango-1.0 -lm -lX11 
-lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0   -lglib-2.0   -laa -lGL -ldl 
-lXxf86dga -lXv -lXvMC -lXvMCW -lXxf86vm -lXinerama -L/usr/lib64 -lXext -lX11  
-lpthread  -L/usr/lib64 -lSDL -lpthread  -L/usr/lib64 -lcaca -lslang -lX11 
-L/usr/X11R6/lib64   -L/usr/lib64 -ldl -lartsc -lpthread -lgmodule-2.0 -ldl 
-lgthread-2.0 -lglib-2.0 -L/usr/lib64 -lesd -laudiofile -lm -lasound -ljack 
-lopenal -Wl,-z,noexecstack  -llirc_client   -lpthread -ldl -rdynamic  -lm
libmpeg2/libmpeg2.a(decode.o): In function `mpeg2_buffer':
/home/users/pluto/rpm/BUILD/MPlayer-1.0pre8/libmpeg2/decode.c:117: multiple 
definition of `DW.types.h.a34a5b93.0'
/home/users/pluto/rpm/BUILD/MPlayer-1.0pre8/libmpeg2/decode.c:119: multiple 
definition of `DW.types.h.a34a5b93.1'
collect2: ld returned 1 exit status
make: *** [mplayer] Error 1


-- 


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] Dwarf 2 reader in linker doesn't suppor DW_FORM_ref_addr

2006-09-21 Thread hjl at lucon dot org

--- Additional Comments From hjl at lucon dot org  2006-09-21 21:19 ---
The current patch is at

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

-- 


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] Dwarf 2 reader in linker doesn't suppor DW_FORM_ref_addr

2006-09-20 Thread hjl at lucon dot org

--- Additional Comments From hjl at lucon dot org  2006-09-20 19:02 ---
Gcc may generate:

 .section.gnu.linkonce.wi.client.cpp.7682538d,,@progbits
 ...
DW.client.cpp.7682538d.2b:
.uleb128 0xd
.long   0x16a
.byte   0x1
.long   .LASF10
.byte   0x1
.byte   0x25
.byte   0x1
.uleb128 0xe
.long   0x114
.byte   0x1
.byte   0x0


.section.debug_info
...
.uleb128 0x8d
.long   0x1c3f
.quad   DW.client.cpp.7682538d.2b
.byte   0x0

When reporting linker error, dwarf2 reader doesn't support more than one
.debug_info section.

-- 
   What|Removed |Added

Summary|Linker doesn't support  |Dwarf 2 reader in linker
   |DWARF3 DW_FORM_ref_addr |doesn't suppor
   ||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


Re: [Bug ld/3191] Dwarf 2 reader in linker doesn't suppor DW_FORM_ref_addr

2006-09-20 Thread Jim Wilson
On Wed, 2006-09-20 at 19:02 +, hjl at lucon dot org wrote:
 When reporting linker error, dwarf2 reader doesn't support more than one
 .debug_info section.

You can only have more than one debug_info section when
-feliminate-dwarf2-dups is used.  This isn't a commonly used option, and
there may be a number of problems with it.  This is allowed by DWARF3,
but not by DWARF2.

I see how your patch might help now.  The debug info is 32-bits as I
mentioned earlier.  The problem here is that pointers are 64-bits.
read_address uses addr_size, and hence is reading a 64-bit address when
it should be reading a 32-bit address, thus getting a number that is too
large.  Your fix adding 64-bit debug support helps because in the 32-bit
case you replaced the read_address call with a read_4_bytes call, which
correctly reads the 32-bit value we want.

However, this is speculation, as I don't know how to reproduce the
failure.  I don't understand why this hasn't come up before.  Also, it
isn't clear what this has to do with the further information you have
provided about multiple debug_info sections.
-- 
Jim Wilson, GNU Tools Support, http://www.specifix.com




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


[Bug ld/3191] Dwarf 2 reader in linker doesn't suppor DW_FORM_ref_addr

2006-09-20 Thread hjl at lucon dot org

--- Additional Comments From hjl at lucon dot org  2006-09-20 20:57 ---
My patch is wrong. It just hides the real problem. dwarf2.c doesn't really
support more than one debug_xxx sections properly. It won't be easy to fix.
Since dwarf2.c is mainly used for error reporting, it isn't a serious problem.

BTW, readelf also assumes there is one set of DWARF debug sections. It fails
to dump client.o properly.

-- 


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] Dwarf 2 reader in linker doesn't suppor DW_FORM_ref_addr

2006-09-20 Thread hjl at lucon dot org

--- Additional Comments From hjl at lucon dot org  2006-09-20 22:22 ---
Here is a new patch

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

-- 


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