[Bug binutils/3146] BUG: readelf fails on ALPHA 2.16 and 2.17 due to NULL pointer

2006-09-14 Thread amodra at bigpond dot net dot au

--- Additional Comments From amodra at bigpond dot net dot au  2006-09-15 
02:21 ---
020001030078  001a R_ALPHA_JMP_SLOT  0200010ca150
020001030080  011a unrecognized: 11a 0200010c9cb0
020001030088  0019 R_ALPHA_GLOB_DAT  0200011ce190
020001030090  021a unrecognized: 21a 0200010c98b0
020001030098  031a unrecognized: 31a 0200010ca4c0
0200010300a8  041a unrecognized: 41a 0200010c7480

Looks to me like prelink is writing a symbol index in the wrong place, ie. as if
this were a 32-bit file.  So I don't think we have some unknown reloc type that
readelf should be supporting.  Since the segfault has been fixed, I'm closing
this bug.

-- 
   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


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

--- 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 binutils/3146] BUG: readelf fails on ALPHA 2.16 and 2.17 due to NULL pointer

2006-09-01 Thread Nick Clifton

Hi Tom,

  I believe that H.J.'s point is that the problem can only arise if the 
ALPHA-targeted binary file contains a reloc that is not known to 
binutils.  Therefore it is in our interests to discover what this reloc 
is and find out whether we should be supporting it, or at least 
recognizing it in readelf.


  So, please could you supply a binary file that triggers this bug ? 
Then we can investigate it further.


  In the meantime I have applied a variant of your patch, since it is 
always good programming practice to check for NULL pointers before 
performing an indirection.  This version of the patch (uploaded to the 
testcase) includes a second check for a NULL rtype further on in the 
dump_relocations function.


Cheers
  Nick



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


[Bug binutils/3146] BUG: readelf fails on ALPHA 2.16 and 2.17 due to NULL pointer

2006-09-01 Thread nickc at redhat dot com

--- Additional Comments From nickc at redhat dot com  2006-09-01 11:44 
---
Created an attachment (id=1272)
 -- (http://sourceware.org/bugzilla/attachment.cgi?id=1272action=view)
Check for a NULL value in rtype before using it.


-- 


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

--- 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/3146] BUG: readelf fails on ALPHA 2.16 and 2.17 due to NULL pointer

2006-09-01 Thread nickc at redhat dot com


-- 
   What|Removed |Added

 Status|NEW |WAITING


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

--- 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/3146] BUG: readelf fails on ALPHA 2.16 and 2.17 due to NULL pointer

2006-08-31 Thread hjl at lucon dot org

--- Additional Comments From hjl at lucon dot org  2006-08-31 15:54 ---
Please provide a testcase such that I can see the problem on Linux/x86.

-- 
   What|Removed |Added

 CC||hjl at lucon dot org


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

--- 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/3146] BUG: readelf fails on ALPHA 2.16 and 2.17 due to NULL pointer

2006-08-31 Thread tomri at gmx dot net

--- Additional Comments From tomri at gmx dot net  2006-08-31 16:44 ---
Oh yes, if you remove the if .. ALPHA.. with X86, you can see the problem too.
Redhat supports glibc and binutils, so only for x86?

-- 


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

--- 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/3146] BUG: readelf fails on ALPHA 2.16 and 2.17 due to NULL pointer

2006-08-31 Thread tomri at gmx dot net

--- Additional Comments From tomri at gmx dot net  2006-08-31 17:20 ---
Well, feel free to take a look at the patch. If you haven't an alpha system,
than you haven't the problem. This is a BUG in the source code from readelf, not
from the input to readelf. 

-- 


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

--- 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/3146] BUG: readelf fails on ALPHA 2.16 and 2.17 due to NULL pointer

2006-08-31 Thread hjl at lucon dot org

--- Additional Comments From hjl at lucon dot org  2006-08-31 17:25 ---
I have built cross binutils for Linux/alpha. Readelf doesn't fail because of
NULL pointer reference. I want to see how it fails in gdb.

-- 


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

--- 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/3146] BUG: readelf fails on ALPHA 2.16 and 2.17 due to NULL pointer

2006-08-31 Thread tomri at gmx dot net

--- Additional Comments From tomri at gmx dot net  2006-08-31 17:34 ---
Above the code line (see patch) there's a test for if rtype == NULL, and below
this test, thereĀ“s a code sequnce using this NULL pointer.

So you can test this, by setting rtype == NULL above the lines from the patch.

-- 


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

--- 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/3146] BUG: readelf fails on ALPHA 2.16 and 2.17 due to NULL pointer

2006-08-31 Thread hjl at lucon dot org


-- 
   What|Removed |Added

 CC|hjl at lucon dot org|


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

--- 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/3146] BUG: readelf fails on ALPHA 2.16 and 2.17 due to NULL pointer

2006-08-29 Thread tomri at gmx dot net

--- Additional Comments From tomri at gmx dot net  2006-08-29 15:00 ---
Created an attachment (id=1262)
 -- (http://sourceware.org/bugzilla/attachment.cgi?id=1262action=view)
patch for BUG

This patch works for me.

-- 


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

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