[Bug ld/3149] ld 2.17 bug ( relocation R_X86_64_PC32 )

2006-08-31 Thread aliens_predator at inbox dot ru

--- Additional Comments From aliens_predator at inbox dot ru  2006-08-31 
06:11 ---
Has as this option? Why is it not documented?

-- 


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

--- 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/3149] ld 2.17 bug ( relocation R_X86_64_PC32 )

2006-08-31 Thread aliens_predator at inbox dot ru

--- Additional Comments From aliens_predator at inbox dot ru  2006-08-31 
08:58 ---
And today I was tested output file and it worked correctly!

-- 


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

--- 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/3159] New: generated code mismatches between 2.15 and 2.16

2006-08-31 Thread michaelryan at mindspring dot com
I discovered the second example when trying to correct for the first.

This small program:
.intel_syntax noprefix
.altmacro
.text
.global testa
.macro  zzz a
add rax,OFFSET \a+8
sub rax,OFFSET \a+8
.endm
 
.macro  yyy a
local q
.equ q, (\a+8)
lea rax,[rax+(\a+8)]
lea rax,[rax-q]
.endm
 
.data
.align 16,0
.equ d, .
.byte 0,0,0,0,0,0,0
.byte 0,0,0,0,0,0,0
.equ c, .-d
 
.equ b, 14
 
.text
.align 16,0
testa:  pushrbp
mov rbp,rsp
 
 
   add rax,OFFSET b+c+8
 
   zzz b+c
 
   lea rax,[rax-3]
   yyy b+c
 
leave
ret
   .end

generates different code on 2.16 than on 2.15.

In 2.15:

32 0004 48052400 add rax,OFFSET b+c+8 
32  

In 2.16:
32 0004 48030425 add rax,OFFSET b+c+8 
32  2400 

The 2.16 object code causes a segfault.


in 2.15:

  37 001a 488D8024   lea rax,[rax+(b+c+8)]
  37  00
  37 0021 488D80DC   lea rax,[rax-.LL0001]
  37  FF

in 2.16:
  37   yyy b+c
  37 
  37 .equ .LL0001,(b+c+8)
  37 0020 488D4016   lea rax,[rax+(b+c+8)]
  37 0024 488D80EA   lea rax,[rax-.LL0001]
  37  FF

-- 
   Summary: generated code mismatches between 2.15 and 2.16
   Product: binutils
   Version: 2.16
Status: NEW
  Severity: normal
  Priority: P2
 Component: gas
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: michaelryan at mindspring dot com
CC: bug-binutils at gnu dot org


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

--- 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/3015] -z relro may create PT_NULL segment

2006-08-31 Thread hjl at lucon dot org

--- Additional Comments From hjl at lucon dot org  2006-08-31 15:41 ---
It is not fixed for all targets. -z relro doesn't work on Linux/ia64. Instead
of ignoring the option, a PT_NULL segment is created. This patch should fix
it:

http://sourceware.org/ml/binutils/2006-08/msg00263.html

-- 
   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|FIXED   |


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

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