[Bug ld/13817] Broken IFUNC support

2012-03-09 Thread cvs-commit at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=13817

--- Comment #5 from cvs-commit at gcc dot gnu.org  2012-03-09 16:28:50 UTC ---
CVSROOT:/cvs/src
Module name:src
Changes by:h...@sourceware.org2012-03-09 16:28:38

Modified files:
bfd: ChangeLog elf32-i386.c elf64-x86-64.c 
ld/testsuite   : ChangeLog 
ld/testsuite/ld-i386: pr13302.d 
ld/testsuite/ld-x86-64: pr13082-5b.d pr13082-6a.d pr13082-6b.d 

Log message:
Restore R_386_IRELATIVE and R_X86_64_IRELATIVE

bfd/

2012-03-09  H.J. Lu  

PR ld/13817
* bfd/elf32-i386.c (elf_i386_relocate_section): Restore
R_386_IRELATIVE.

* * elf64-x86-64.c (elf_x86_64_relocate_section): Restore
R_X86_64_IRELATIVE.

ld/testsuite/

2012-03-09  H.J. Lu  

PR ld/13817
* ld-i386/pr13302.d: Updated.
* ld-x86-64/pr13082-5b.d: Likewise.
* ld-x86-64/pr13082-6a.d: Likewise.
* ld-x86-64/pr13082-6b.d: Likewise.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/ChangeLog.diff?cvsroot=src&r1=1.5624&r2=1.5625
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf32-i386.c.diff?cvsroot=src&r1=1.265&r2=1.266
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf64-x86-64.c.diff?cvsroot=src&r1=1.248&r2=1.249
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ChangeLog.diff?cvsroot=src&r1=1.1499&r2=1.1500
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-i386/pr13302.d.diff?cvsroot=src&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-x86-64/pr13082-5b.d.diff?cvsroot=src&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-x86-64/pr13082-6a.d.diff?cvsroot=src&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-x86-64/pr13082-6b.d.diff?cvsroot=src&r1=1.2&r2=1.3

-- 
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/13827] New: z8k sout and soutb instructions -- special bit not set

2012-03-09 Thread theyelesoms at bellsouth dot net
http://sourceware.org/bugzilla/show_bug.cgi?id=13827

 Bug #: 13827
   Summary: z8k sout and soutb instructions -- special bit not set
   Product: binutils
   Version: 2.23 (HEAD)
Status: NEW
  Severity: normal
  Priority: P2
 Component: gas
AssignedTo: unassig...@sourceware.org
ReportedBy: theyeles...@bellsouth.net
Classification: Unclassified


The assembler generates incorrect values for the z8k's sout and soutb
instructions.  The special bit is not set as it should be, so the instructions
are effectively translated to out and outb.

>From what I can tell, z8k-opc.h is generated from information in z8kgen.c, so
here is a patch for that file:

--- z8kgen.c2012-03-09 22:21:32.859375000 -0500
+++ z8kgen.c.fixed2012-03-09 22:22:12.078125000 -0500
@@ -458,8 +458,8 @@
   {"CZS---", 13, 8, "1011 0010  0001    imm4", "sllb
rbd,imm4", 0},
   {"CZS---", 13, 32, "1011 0011  0101   imm8", "slll rrd,imm8",
0},

-  {"--", 12, 16, "0011 1011  0110 imm16", "sout imm16,rs", 0},
-  {"--", 12, 8, "0011 1010  0110 imm16", "soutb imm16,rbs", 0},
+  {"--", 12, 16, "0011 1011  0111 imm16", "sout imm16,rs", 0},
+  {"--", 12, 8, "0011 1010  0111 imm16", "soutb imm16,rbs", 0},
   {"---V--", 21, 16, "0011 1011 ssN0 1011    1000", "soutd
@ro,@rs,ra", 0},
   {"---V--", 21, 8, "0011 1010 ssN0 1011    1000", "soutdb
@ro,@rs,ra", 0},
   {"---V--", 11, 16, "0011 1011 ssN0 1011    ", "sotdr
@ro,@rs,ra", 0},

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