[Bug binutils/3039] New: Compile fails (file wrstabs.c)

2006-08-14 Thread urkud dot urkud at gmail dot com
Using gcc-4.1.1:
cc1: warnings being treated as errors
../../binutils-2.17/binutils/wrstabs.c: In function 'stab_tag_type':
../../binutils-2.17/binutils/wrstabs.c:1297: warning: 'size' is used
uninitialized in this function

-- 
   Summary: Compile fails (file wrstabs.c)
   Product: binutils
   Version: 2.17
Status: NEW
  Severity: normal
  Priority: P2
 Component: binutils
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: urkud dot urkud at gmail dot com
CC: bug-binutils at gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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

--- 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/3039] Compile fails (file wrstabs.c)

2006-08-14 Thread urkud dot urkud at gmail dot com

--- Additional Comments From urkud dot urkud at gmail dot com  2006-08-14 
11:31 ---
I used the following $CFLAGS: CFLAGS="-O3 -mtune=pentium4 -msse -msse2 -mmmx 
-pipe" There are no errors when compiling with empty $CFLAGS

-- 


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

--- 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/3041] New: Bogus jump to weak symbol on m68k-unknown-netbsd

2006-08-14 Thread vincent dot riviere at freesbee dot fr
When assembled, a jump to weak symbol produces a jump to an invalid address. I 
found that problem on m68k-unknown-netbsd, but it may affect all m68k-*-aout 
targets.

$ cat bug.s
jmp mylabel
nop
.weak mylabel
mylabel:
nop

$ as bug.s -o bug.o
$ objdump -d bug.o

bug.o: file format a.out-m68k-netbsd

Disassembly of section .text:

 :
   0:   4efa 000a   jmp %pc@(c )
   4:   4e71nop

0006 :
   6:   4e71nop

The value of the jmp instruction is wrong : it should be %pc@(6 )
It might not be a problem, because there is a relocation.

$ objdump -r bug.o

bug.o: file format a.out-m68k-netbsd

RELOCATION RECORDS FOR [.text]:
OFFSET   TYPE  VALUE
0002 DISP16.text

Here, it is clearly wrong. The relocation offset is good, but the value should 
be "mylabel" instead of ".text"
After linking, there is no more relocation, but the value of the jump is still 
bad.

The same problem was present in gas 2.14 for m68k-unknown-netbsd (already using 
BFD).
The problem was not present in gas 2.14 for m68k-linux-aout (not using BFD) :

$ objdump -d bug.o # binutils 2.14 m68k-linux-aout

bug.o: file format a.out-zero-big

Disassembly of section .text:

 :
   0:   4efa 0004   jmp %pc@(6 )
   4:   4e71nop

0006 :
   6:   4e71nop

I think the above result is correct and the current version of gas for m68k-
unknown-netbsd should behave like that.

-- 
   Summary: Bogus jump to weak symbol on m68k-unknown-netbsd
   Product: binutils
   Version: 2.18 (HEAD)
Status: NEW
  Severity: normal
  Priority: P2
 Component: gas
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: vincent dot riviere at freesbee dot fr
CC: bug-binutils at gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: m68k-unknown-netbsd


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

--- 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/3039] Compile fails (file wrstabs.c)

2006-08-14 Thread urkud dot urkud at gmail dot com

--- Additional Comments From urkud dot urkud at gmail dot com  2006-08-14 
16:40 ---
I've detected, that problem in the -O3 flag.

-- 


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

--- 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/3052] New: ld lma assignment change breaks x86-64 Linux 2.6 kernel

2006-08-14 Thread hjl at lucon dot org
This change

http://sourceware.org/ml/binutils/2006-07/msg00314.html

beaks x86-64 2.6 kernel. Before the change, we have

There are 48 section headers, starting at offset 0x2075af8:

Section Headers:
  [Nr] Name  TypeAddress  OffSize   ES Flg
Lk Inf Al
  [ 0]   NULL 00 00 00 
0   0  0
  [ 1] .text PROGBITS8010 10 20ea98 00  AX 
0   0 64
  [ 2] __ex_tablePROGBITS8030eaa0 30eaa0 0051e0 00   A 
0   0  8

After the change, we got

There are 48 section headers, starting at offset 0x215a658:

Section Headers:
  [Nr] Name  TypeAddress  OffSize   ES Flg
Lk Inf Al
  [ 0]   NULL 00 00 00 
0   0  0
  [ 1] .text PROGBITS8010 30 20ea98 00  AX 
0   0 64
  [ 2] __ex_tablePROGBITS8030eaa0 50eaa0 0051e0 00   A 
0   0  8

-- 
   Summary: ld lma assignment change breaks x86-64 Linux 2.6 kernel
   Product: binutils
   Version: 2.18 (HEAD)
Status: NEW
  Severity: normal
  Priority: P2
 Component: ld
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: hjl at lucon dot org
CC: amodra at bigpond dot net dot au,bug-binutils at gnu dot
org


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

--- 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-14 Thread hjl at lucon dot org

--- Additional Comments From hjl at lucon dot org  2006-08-14 23:20 ---
A testcase to show that -z relro may create PT_NULL segment:

[EMAIL PROTECTED] tmp]$ cat x.s
.globl main
.globl start
.globl _start
.globl __start
.text
main:
start:
_start:
__start:
.long   0
[EMAIL PROTECTED] tmp]$ gcc -c x.s
[EMAIL PROTECTED] tmp]$ ld  -z relro x.o
[EMAIL PROTECTED] tmp]$ readelf -l a.out

Elf file type is EXEC (Executable file)
Entry point 0x4000b0
There are 2 program headers, starting at offset 64

Program Headers:
  Type   Offset VirtAddr   PhysAddr
 FileSizMemSiz  Flags  Align
  LOAD   0x 0x0040 0x0040
 0x00b4 0x00b4  R E20
  NULL   0x 0x 0x
 0x 0x 0

 Section to Segment mapping:
  Segment Sections...
   00 .text
   01



-- 
   What|Removed |Added

 CC||hjl at lucon dot org
Summary|-z relro by default causes  |-z relro may create PT_NULL
   |testsuite failures  |segment


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

2006-08-14 Thread hjl at lucon dot org

--- Additional Comments From hjl at lucon dot org  2006-08-15 00:42 ---
A patch is posted at

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

-- 


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