[Bug binutils/24960] Memory leak from disassembler

2019-12-09 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=24960

--- Comment #2 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by Alan Modra :

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

commit 20135676fc4c3912297c313b3e0d3cbd6cc402e3
Author: Alan Modra 
Date:   Mon Dec 9 20:34:49 2019 +1030

PR24960, Memory leak from disassembler

PR 24960
include/
* dis-asm.h (disassemble_free_target): Declare.
opcodes/
* disassemble.c (disassemble_free_target): New function.
binutils/
* objdump.c (disassemble_data): Call disassemble_free_target.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/24960] Memory leak from disassembler

2019-12-09 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=24960

Alan Modra  changed:

   What|Removed |Added

 Resolution|WONTFIX |FIXED
   Assignee|unassigned at sourceware dot org   |amodra at gmail dot com
   Target Milestone|--- |2.34

--- Comment #3 from Alan Modra  ---
Fixed with a patch that actually hooks in the target free function.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25264] New: RISC-V option norvc: linker complains "14 bytes required for alignment to 16-byte boundary, but only 12 present"

2019-12-09 Thread scott.johnson at arilinc dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25264

Bug ID: 25264
   Summary: RISC-V option norvc: linker complains "14 bytes
required for alignment to 16-byte boundary, but only
12 present"
   Product: binutils
   Version: 2.34 (HEAD)
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: gas
  Assignee: unassigned at sourceware dot org
  Reporter: scott.johnson at arilinc dot com
  Target Milestone: ---

Created attachment 12115
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12115&action=edit
failing test case

When I switch back and forth between '.option rvc' and '.option norvc', the
alignment mechanism seems to break. When linking I get this failure:

riscv64-unknown-elf-ld: lotsaregs.o(.text+0x2): 14 bytes required for alignment
to 16-byte boundary, but only 12 present
riscv64-unknown-elf-ld: can't relax section: bad value
make: *** [lotsaregs.elf] Error 1


See attached testcase. This was run using binutils 2.33.50.20191209 (latest
master git bac7c5cf) but also seen in a months-old release. Built today using
crosstools-ng 1.24.0.

(The error message comes from ld but I suspect the problem originates in as, so
I'm filing this under as.)

In another instance (no testcase, sorry) a .balign 4 failed to achieve the
intended alignment, giving no error message but leaving the next instruction
only 2-byte aligned.

-- 
You are receiving this mail because:
You are on the CC list for the bug.