[Bug gas/14448] New: AVR - BFD_RELOC_32 (4bytes) is written as 2 bytes

2012-08-10 Thread M.Cerveny at computer dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=14448

 Bug #: 14448
   Summary: AVR - BFD_RELOC_32 (4bytes) is written as 2 bytes
   Product: binutils
   Version: 2.20
Status: NEW
  Severity: normal
  Priority: P2
 Component: gas
AssignedTo: unassig...@sourceware.org
ReportedBy: m.cerv...@computer.org
Classification: Unclassified


Hello, 

I have problem to debug large avr programs (tinyos/nescc generate one large
source file that is passed throught avr-gcc to avr-as). The debug information
are getting corrupted if any generated section in elf is larger than 64kB.

Example errors: 
- avr-gdb cannot find source line
- "avr-objdump -Wl" / "avr-readelf -wl" outputs "Warning: The information in
section .debug_line appears to be corrupt - the section is too small"

I debugged avr-as. All relloc/fixup are correctly computed in BFD_RELOC_32
format (traced with DEBUG5 in gas/write.c) but there is written only first 2
bytes :-(

I am not expert in code generation.

M.C>

--- gas/config/tc-avr.c.orig2012-08-05 23:30:56.030369086 +0200
+++ gas/config/tc-avr.c2012-08-10 13:00:17.610451285 +0200
@@ -1244,7 +1245,7 @@
   break;

 case BFD_RELOC_32:
-  bfd_putl16 ((bfd_vma) value, where);
+  bfd_putl32 ((bfd_vma) value, where);
   break;

 case BFD_RELOC_16:

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

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


[Bug gold/14265] -gc-sections ignores KEEP annotations

2012-08-10 Thread nickc at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14265

--- Comment #3 from Nick Clifton  2012-08-10 14:57:53 
UTC ---
Created attachment 6571
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6571
Proposed fix

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

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


[Bug gold/14265] -gc-sections ignores KEEP annotations

2012-08-10 Thread nickc at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14265

Nick Clifton  changed:

   What|Removed |Added

 Status|NEW |WAITING

--- Comment #4 from Nick Clifton  2012-08-10 15:01:07 
UTC ---
Hi Ian,

  Please could you look at the proposed patch I have just uploaded and let me
know if you are happy with it, or if it needs more work.  (I admit that I have
not tested the patch extensively yet, just with the test case attached to the
PR).

  I am going to create a linker test case as well, once the patch is OK.

Cheers
  Nick

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

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


[Bug binutils/14451] New: Typos: "Referece" + "Genertor" + "infomation" + "the the"s

2012-08-10 Thread yurchor at ukr dot net
http://sourceware.org/bugzilla/show_bug.cgi?id=14451

 Bug #: 14451
   Summary: Typos: "Referece" + "Genertor" + "infomation" + "the
the"s
   Product: binutils
   Version: 2.23 (HEAD)
Status: NEW
  Severity: normal
  Priority: P2
 Component: binutils
AssignedTo: unassig...@sourceware.org
ReportedBy: yurc...@ukr.net
Classification: Unclassified


Created attachment 6574
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6574
Patch to fix the typos

There are typos in binutils messages, comments, logs and docs (see the patch
attached).

Thanks for fixing them.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

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


[Bug gas/14423] Assembler doesn't recognize fma3 instructions in bdver2 core

2012-08-10 Thread cvs-commit at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=14423

--- Comment #1 from cvs-commit at gcc dot gnu.org  2012-08-10 21:19:46 UTC ---
CVSROOT:/cvs/src
Module name:src
Changes by:h...@sourceware.org2012-08-10 21:19:40

Modified files:
gas/testsuite  : ChangeLog 
gas/testsuite/gas/i386: i386.exp 
opcodes: ChangeLog i386-gen.c i386-init.h 
Added files:
gas/testsuite/gas/i386: arch-10-bdver2.d x86-64-arch-2-bdver2.d 

Log message:
Enable FMA instructions for bdver2

gas/testsuite/

PR gas/14423
* gas/i386/arch-10-bdver2.d: New file.
* gas/i386/x86-64-arch-2-bdver2.d: Likewise.
* gas/i386/i386.exp: Run new test

opcodes/

2012-08-11  Saravanan Ekanathan 

PR gas/14423
* i386-gen.c (cpu_flag_init): Add CpuFMA in CPU_BDVER2_FLAGS.
* i386-init.h: Regenerated.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gas/testsuite/ChangeLog.diff?cvsroot=src&r1=1.2077&r2=1.2078
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gas/testsuite/gas/i386/arch-10-bdver2.d.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gas/testsuite/gas/i386/x86-64-arch-2-bdver2.d.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gas/testsuite/gas/i386/i386.exp.diff?cvsroot=src&r1=1.174&r2=1.175
http://sourceware.org/cgi-bin/cvsweb.cgi/src/opcodes/ChangeLog.diff?cvsroot=src&r1=1.1843&r2=1.1844
http://sourceware.org/cgi-bin/cvsweb.cgi/src/opcodes/i386-gen.c.diff?cvsroot=src&r1=1.84&r2=1.85
http://sourceware.org/cgi-bin/cvsweb.cgi/src/opcodes/i386-init.h.diff?cvsroot=src&r1=1.46&r2=1.47

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

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


[Bug gas/14423] Assembler doesn't recognize fma3 instructions in bdver2 core

2012-08-10 Thread hjl.tools at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14423

H.J. Lu  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED

--- Comment #2 from H.J. Lu  2012-08-11 00:08:54 
UTC ---
Fixed.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

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


[Bug gold/14265] -gc-sections ignores KEEP annotations

2012-08-10 Thread ian at airs dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14265

Ian Lance Taylor  changed:

   What|Removed |Added

 Status|WAITING |ASSIGNED
 AssignedTo|ian at airs dot com |nickc at redhat dot com

--- Comment #5 from Ian Lance Taylor  2012-08-11 03:51:52 
UTC ---
Patch looks good, thanks.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

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