[Bug ld/22048] Incorrect .eh_frame section in libc.so

2017-08-31 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=22048

--- Comment #9 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by H.J. Lu :

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d7de64088c7ce0d642c73feb66f408c601cffb0d

commit d7de64088c7ce0d642c73feb66f408c601cffb0d
Author: H.J. Lu 
Date:   Thu Aug 31 03:53:44 2017 -0700

Add a test for PR ld/22048

PR ld/22048
* testsuite/ld-x86-64/pr22048.d: New file.
* testsuite/ld-x86-64/pr22048a.s: Likewise.
* testsuite/ld-x86-64/pr22048b.s: Likewise.
* testsuite/ld-x86-64/x86-64.exp: Run pr22048.

-- 
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 ld/22048] Incorrect .eh_frame section in libc.so

2017-08-31 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=22048
Bug 22048 depends on bug 22051, which changed state.

Bug 22051 Summary: zero terminator in the middle of glibc's .eh_frame
https://sourceware.org/bugzilla/show_bug.cgi?id=22051

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

-- 
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/22047] Heap out of bounds read in parse_comp_unit()

2017-08-31 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=22047

--- Comment #1 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by Nick Clifton :

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=e4f2723003859dc6b33ca0dadbc4a7659ebf1643

commit e4f2723003859dc6b33ca0dadbc4a7659ebf1643
Author: Nick Clifton 
Date:   Thu Aug 31 17:03:23 2017 +0100

Fix buffer read overrun by ensuring that DWARF sections containing strings
always end in a NUL byte.

PR 22047
* dwarf2.c (read_section): If necessary add a terminating NUL byte
to dwarf string sections.

-- 
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/22047] Heap out of bounds read in parse_comp_unit()

2017-08-31 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=22047

Nick Clifton  changed:

   What|Removed |Added

 CC||nickc at redhat dot com

--- Comment #2 from Nick Clifton  ---
Hi Kamil,

  Thanks for reporting this bug.

  I have checked in a patch to the mainline development sources to fix the 
  problem, by ensuring that any DWARF section containing strings is 
  terminated with a NUL byte when it is read in.

  I have not applied the patch to the current 2.29 branch however as I am
  a little bit concerned that I may have overlooked something.  So I would
  like to wait a few days to see if any problems arise with this fix.

Cheers
  Nick

-- 
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/22055] New: asw

2017-08-31 Thread ppq.buntu at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=22055

Bug ID: 22055
   Summary: asw
   Product: binutils
   Version: unspecified
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: gas
  Assignee: unassigned at sourceware dot org
  Reporter: ppq.buntu at gmail dot com
  Target Milestone: ---

Created attachment 10380
  --> https://sourceware.org/bugzilla/attachment.cgi?id=10380&action=edit
asw

asw

-- 
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/22049] PowerPC VLE: Lower 16 bit address offset not calculated properly in some cases

2017-08-31 Thread vincegeg83 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=22049

--- Comment #2 from vincegeg83 at gmail dot com ---
Created attachment 10381
  --> https://sourceware.org/bugzilla/attachment.cgi?id=10381&action=edit
Assembly file to illustrate low 16 bit address problem

-- 
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/22049] PowerPC VLE: Lower 16 bit address offset not calculated properly in some cases

2017-08-31 Thread vincegeg83 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=22049

vincegeg83 at gmail dot com changed:

   What|Removed |Added

 Status|RESOLVED|UNCONFIRMED
 Resolution|WORKSFORME  |---

--- Comment #3 from vincegeg83 at gmail dot com ---
Thanks, can you confirm whether this is correct?  It doesn't seem like it:

Original assembly (attached as test.s):

.org0x100100

e_b begin
data0:
.short 0x1234

.align 2, 0x44
begin:
e_lis r4, data0@ha
e_lhz r4, data0@l(r4)

_@photon ~/asm
$ powerpc-linux-as -many -mvle -mregnames test.s

_@photon ~/asm
$ powerpc-linux-objdump -dr a.out

a.out: file format elf32-powerpc


Disassembly of section .text:

 :
...
  100100:   78 00 00 08 e_b 100108 

00100104 :
  100104:   12 34 44 44 .long 0x1234

00100108 :
  100108:   70 80 e0 10 e_lis   r4,16
100108: R_PPC_VLE_HA16A .text+0x100104
  10010c:   58 84 00 00 e_lhz   r4,0(r4)
10010e: R_PPC_ADDR16_LO .text+0x100104


It seems to correctly set the symbol to 0x100104, but note the low 16 bit
decoding is wrong, it's using 0 instead of 0x0104.

-- 
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/22049] PowerPC VLE: Lower 16 bit address offset not calculated properly in some cases

2017-08-31 Thread vincegeg83 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=22049

vincegeg83 at gmail dot com changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |INVALID

--- Comment #4 from vincegeg83 at gmail dot com ---
Ok, I think it's been sorted out.

I was converting the assembler objection file directly to binary, skipping the
linker step.

I added this:


ld -melf32ppc --section-start=.text=0x100100 test.o -o test_vle.bin

...and it produces the correct machine code.

-- 
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/22055] asw

2017-08-31 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=22055

Alan Modra  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |INVALID

--- Comment #1 from Alan Modra  ---
Spam

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