[Bug binutils/17512] segfault in PE parser / _bfd_pei_swap_aouthdr_in

2014-11-05 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=17512

--- Comment #58 from cvs-commit at gcc dot gnu.org  ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gdb and binutils".

The branch, master has been updated
   via  20ad5e2842911039a60b6bdf9880cee895179e43 (commit)
  from  1ae1b8cc656639e18715829cbcd72916e86f3324 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

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

commit 20ad5e2842911039a60b6bdf9880cee895179e43
Author: Nick Clifton 
Date:   Wed Nov 5 10:13:16 2014 +

More fixes for processing corrupt files.

PR binutils/17512
* coffcode.h (coff_set_alignment_hook): Warn if the file lies
about the number of relocations it contains.
(coff_sort_func_alent): Return 0 if the pointers are NULL.
(coff_slurp_line_table): Add more range checks.  Do not free new
tables created when sorting line numbers.
* peXXigen.c (pe_print_idata): Add range checks.
(pe_print_edata): Likewise.
(rsrc_print_resource_entries): Likewise.  Avoid printing control
characters.  Terminate priniting if corruption is detected.
(rsrc_print_resource_directory): Terminate printing if an unknown
directory type is encountered.
(pe_print_debugdata): Fix off-by-one error.
(rsrc_count_entries): Add range checking.
(rsrc_parse_entry): Likewise.

---

Summary of changes:
 bfd/ChangeLog  |   18 
 bfd/coffcode.h |   28 +++--
 bfd/peXXigen.c |  122 
 3 files changed, 129 insertions(+), 39 deletions(-)

-- 
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/17512] segfault in PE parser / _bfd_pei_swap_aouthdr_in

2014-11-05 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=17512

--- Comment #59 from Nick Clifton  ---
(In reply to Alexander Cherepanov from comment #54)

> More crashers for `objdump -x`

Ok - I have updated the master branch with patches for all of these problems. 
Please try it out and let me know if you find any more issues.

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 binutils/17512] segfault in PE parser / _bfd_pei_swap_aouthdr_in

2014-11-05 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=17512

--- Comment #60 from Nick Clifton  ---
Created attachment 7898
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7898&action=edit
Proposed patch to fix valgrind's complaints about using uninitialised memory

(In reply to comment #57)

Hi Alexnder,

  I still cannot reproduce the valgrind problem, but the log you provided does
give me a clue.  Please could you try out the uploaded patch (which has *not*
been applied to the master branch) and see if it works for you ?

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 binutils/17552] strip/objcopy: directory traversal

2014-11-05 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=17552

Nick Clifton  changed:

   What|Removed |Added

 CC||nickc at redhat dot com

--- Comment #1 from Nick Clifton  ---
Created attachment 7899
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7899&action=edit
Proposed patch

-- 
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/17505] arm: bad static label resolution from different modes

2014-11-05 Thread rearnsha at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=17505

Richard Earnshaw  changed:

   What|Removed |Added

 CC||rearnsha at gcc dot gnu.org

--- Comment #5 from Richard Earnshaw  ---
(In reply to Christian Bruel from comment #1)
> Encoding a BFD_RELOC_ARM_PCREL_BLX instead of a BFD_RELOC_ARM_PCREL_CALL for
> static calls between arm to thumb fixed the problem.

That sounds wrong.

Which architecture revision are you targeting?

-- 
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/17552] strip/objcopy: directory traversal

2014-11-05 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=17552

Nick Clifton  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED

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

  Please could you try out the uploaded patch and let me know if it works for
you ?

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 ld/17505] arm: bad static label resolution from different modes

2014-11-05 Thread chrbr at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=17505

--- Comment #6 from Christian Bruel  ---
(In reply to Richard Earnshaw from comment #5)
> (In reply to Christian Bruel from comment #1)
> > Encoding a BFD_RELOC_ARM_PCREL_BLX instead of a BFD_RELOC_ARM_PCREL_CALL for
> > static calls between arm to thumb fixed the problem.
> 
> That sounds wrong.

it is indeed, fixed locally but many other regressions. 

> 
> Which architecture revision are you targeting?

v7 and v5

-- 
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/17512] segfault in PE parser / _bfd_pei_swap_aouthdr_in

2014-11-05 Thread cherepan at mccme dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=17512

--- Comment #61 from Alexander Cherepanov  ---
Created attachment 7900
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7900&action=edit
More crashers for `objdump -x`

objdump is definitely getting harder to crash. Keep up the good work!

It still crashes though.

-- 
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/17512] segfault in PE parser / _bfd_pei_swap_aouthdr_in

2014-11-05 Thread cherepan at mccme dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=17512

--- Comment #62 from Alexander Cherepanov  ---
(In reply to Alexander Cherepanov from comment #61)
> Created attachment 7900 [details]
> More crashers for `objdump -x`
> 
> objdump is definitely getting harder to crash. Keep up the good work!
> 
> It still crashes though.

Files: 10
Errors:
 29 Conditional jump or move depends on uninitialised value(s)
 30 Invalid read of size ...
  2 Process terminating with default action of signal 11 (SIGSEGV)
  4 Use of uninitialised value of size ...

-- 
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/17556] New: crashing when mixing SHF_ALLOC and non SHF_ALLOC sections

2014-11-05 Thread rafael.espindola at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=17556

Bug ID: 17556
   Summary: crashing when mixing SHF_ALLOC and non SHF_ALLOC
sections
   Product: binutils
   Version: unspecified
Status: NEW
  Severity: normal
  Priority: P2
 Component: gold
  Assignee: ccoutant at google dot com
  Reporter: rafael.espindola at gmail dot com
CC: ian at airs dot com

$ cat test.s
.section .foo,""

$ cat test2.s
.section.foo,"a"
bar:
$ gcc -c test.s
$ gcc -c test2.s
$ ld -shared -o test.so test.o test2.o
ld: internal error in add_output_section_to_load, at
../../binutils/gold/output.cc:4093

-- 
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/17505] arm: bad static label resolution from different modes

2014-11-05 Thread rearnsha at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=17505



--- Comment #7 from Richard Earnshaw  ---

> What is surprising is that the linker correctly patches the BL/BLX instru
ctions, itś just the address that is wrong. I´m wondering if this
 can be fixed in the linker machinery to handle interwork or have the assem
bly emit a R_ARM_THM_CALL reloc 



I think you're being confused by the disassembler.  The two symbols are at 
the

same address (there's no code in between the two); so the disassembler just

picks one of them to print out.



I still don't see anything wrong with what's being generated by the

assembler/linker.



-- 

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/17531] readelf -a crashes on fuzzed samples

2014-11-05 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=17531

--- Comment #11 from Nick Clifton  ---
Created attachment 7901
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7901&action=edit
Third readelf patch

Hi Alexander,

  Please update your master branch and try again...

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 binutils/17533] objdump/ar/... crash on malformed ar file

2014-11-05 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=17533

--- Comment #9 from Nick Clifton  ---
Created attachment 7902
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7902&action=edit
Proposed patch

-- 
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/17533] objdump/ar/... crash on malformed ar file

2014-11-05 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=17533

--- Comment #10 from Nick Clifton  ---
Hi Alexander,

  I have uploaded a possible patch to address the directory traversal issue. 
(This is the same patch as the one posted to PR 17552).  Please try it out and
let me know if you are happy with it.

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 ld/17558] New: ld will follow DT_NEEDED when it is not necessary

2014-11-05 Thread rafael.espindola at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=17558

Bug ID: 17558
   Summary: ld will follow DT_NEEDED when it is not necessary
   Product: binutils
   Version: unspecified
Status: NEW
  Severity: normal
  Priority: P2
 Component: ld
  Assignee: unassigned at sourceware dot org
  Reporter: rafael.espindola at gmail dot com

$ cat test3.c
void h(void) {
}
$ cat test2.c
void h(void);
void f(void) {
  h();
}
$ cat test.c
void f(void);
int main(void) {
  f();
}
$ gcc test3.c -fPIC -shared -o test3.so
$ gcc test2.c -fPIC -shared -o test2.so test3.so
$ gcc test.c -o test test2.so -fuse-ld=gold
$ gcc test.c -o test test2.so -fuse-ld=bfd
/home/espindola/inst/binutils/bin/ld.bfd: warning: test3.so, needed by
test2.so, not found (try using -rpath or -rpath-link)
test2.so: undefined reference to `h'
collect2: error: ld returned 1 exit status


But test.c doesn't use h or anything from test3.so at all. All that it needs is
test2.so and that has already been created.

-- 
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/17558] ld will follow DT_NEEDED when it is not necessary

2014-11-05 Thread rafael.espindola at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=17558



Rafael Ávila de Espíndola  cha
nged:



   What|Removed |Added



 CC||hjl.tools at gmail dot com



-- 

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/17505] arm: bad static label resolution from different modes

2014-11-05 Thread chrbr at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=17505

--- Comment #8 from Christian Bruel  ---
sorry, the first test was only illustrative, but not completed. the fact that
the addresses are the same is just because I reduced the code. 

Here is the complete attachment, here the code is : 

8240 :
8240:e30b3178 movwr3, #45432; 0xb178
8244:e3e0207e mvnr2, #126; 0x7e
8248:e3403001 movtr3, #1
824c:e5933000 ldrr3, [r3]
8250:e5c32000 strbr2, [r3]
8254:e12fff1e bxlr

8258 :
8258:4770  bxlr
825a:bf00  nop

and main calls : 

8018 :
8018:e92d4010 push{r4, lr}
801c:fa93 blx8270 
8020:eb86 bl8240 
8024:e3a0 movr0, #0
8028:e8bd8010 pop{r4, pc}

so

 blbar

is in the .o

   4:eb04 bl30 
4: R_ARM_CALLbar

instead of just bl30 <0x18>

looks like a wrong addend to the start of the section.

to reproduce:

arm-none-eabi-gcc -march=armv7-a 2.s -c -o 1.o
arm-none-eabi-objdump -dr 1.o | grep bar

arm-none-eabi-gcc -march=armv7-a 2.s -o 1.u
arm-none-eabi-objdump -dr 1.u

-- 
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/17505] arm: bad static label resolution from different modes

2014-11-05 Thread chrbr at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=17505

Christian Bruel  changed:

   What|Removed |Added

   Attachment #7843|0   |1
is obsolete||
   Attachment #7867|0   |1
is obsolete||

--- Comment #9 from Christian Bruel  ---
Created attachment 7903
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7903&action=edit
complete runable assembly

-- 
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/17558] ld will follow DT_NEEDED when it is not necessary

2014-11-05 Thread sch...@linux-m68k.org
https://sourceware.org/bugzilla/show_bug.cgi?id=17558

Andreas Schwab  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |INVALID

--- Comment #1 from Andreas Schwab  ---
ld.gold defaults to --allow-shlib-undefined, ld.bfd defaults to
--no-allow-shlib-undefined, when creating executables.

-- 
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/17512] segfault in PE parser / _bfd_pei_swap_aouthdr_in

2014-11-05 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=17512

--- Comment #63 from cvs-commit at gcc dot gnu.org  ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gdb and binutils".

The branch, master has been updated
   via  a6f921c87700c2349cf6fa35fbc8ec9d3e3fb88e (commit)
  from  74e1a04b9787c02ba0fa9b93e3dae691bb44ed96 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

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

commit a6f921c87700c2349cf6fa35fbc8ec9d3e3fb88e
Author: Nick Clifton 
Date:   Wed Nov 5 17:57:54 2014 +

More fixes for memory problems uncovered by file fuzzers.

PR binutils/17512
* coffcode.h (handle_COMDAT): Replace abort with BFD_ASSERT.
Replace another abort with an error message.
(coff_slurp_line_table): Add more range checking.
* peXXigen.c (pe_print_debugdata): Add range checking.

---

Summary of changes:
 bfd/ChangeLog  |8 
 bfd/coffcode.h |   21 ++---
 bfd/peXXigen.c |6 ++
 3 files changed, 28 insertions(+), 7 deletions(-)

-- 
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/17512] segfault in PE parser / _bfd_pei_swap_aouthdr_in

2014-11-05 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=17512

--- Comment #64 from Nick Clifton  ---
Hi Alexander,

  I have checked another patch in.  Please update your sources and try again.

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 binutils/17552] strip/objcopy: directory traversal

2014-11-05 Thread cherepan at mccme dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=17552

--- Comment #3 from Alexander Cherepanov  ---
Yes, the check seems to be Ok in general. And the specific issues are fixed.

Two remarks:
- strip/objcopy don't remove temporary files and dirs when run on the test.a
from below. Perhaps, this is intended behavior, I don't know;
- you seems to target Windows but the macros in include/filenames.h don't check
for dos special names like con and prn (but it shouldn't be a problem under
cygwin1.7).

-- 
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/17533] objdump/ar/... crash on malformed ar file

2014-11-05 Thread cherepan at mccme dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=17533

--- Comment #11 from Alexander Cherepanov  ---
I've tried the patch from PR 17522. It fixes this issue too.

-- 
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/17553] .eh_frame_hdr table[0] FDE at 00000978 overlaps table[1] FDE at 000009a0 when not using "-Wl,-traditional" on sh4

2014-11-05 Thread glaubitz at physik dot fu-berlin.de
https://sourceware.org/bugzilla/show_bug.cgi?id=17553

--- Comment #5 from glaubitz at physik dot fu-berlin.de  ---
(In reply to Alan Modra from comment #4)
> $ ../ld/ld-new -mshlelf -shared --eh-frame-hdr -o test.so test1.o test2.o
> $
> 
> Doesn't reproduce for me using master binutils.

I see. I'll have to do some more testing with the current version from
git/HEAD.
Please leave the bug open in the meantime, I'll report back once I know more.

Adrian

-- 
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/17512] segfault in PE parser / _bfd_pei_swap_aouthdr_in

2014-11-05 Thread hanno at hboeck dot de
https://sourceware.org/bugzilla/show_bug.cgi?id=17512

--- Comment #65 from Hanno Boeck  ---
Hi Nick,

If I use latest head and apply 7989 patch for valgrind warnings the number of
uninitialized memory issues valgrind reports is reduced, but they don't
disappear. I still get some valgrind warnings on these files:
070-7883-0.004
078-11867-0.004
078-12277-0.004
078-2394-0.004
079-8998-0.004
093-3968-0.004
1315-linux-omagic
205-7526-0.004

I will attach valgrind logs.

cu, Hanno

-- 
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/17512] segfault in PE parser / _bfd_pei_swap_aouthdr_in

2014-11-05 Thread hanno at hboeck dot de
https://sourceware.org/bugzilla/show_bug.cgi?id=17512

--- Comment #66 from Hanno Boeck  ---
Created attachment 7904
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7904&action=edit
remaining valgrind warnings

-- 
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/17553] .eh_frame_hdr table[0] FDE at 00000978 overlaps table[1] FDE at 000009a0 when not using "-Wl,-traditional" on sh4

2014-11-05 Thread glaubitz at physik dot fu-berlin.de
https://sourceware.org/bugzilla/show_bug.cgi?id=17553

--- Comment #6 from glaubitz at physik dot fu-berlin.de  ---
Some further tests with the same version of binutils on both sh4 and
cross-building on x86_64 using the two object files attached to this bug report
with the linking working fine on x86_64 while failing on sh4.

As you can see, the eh_frame sizes differ for test2.o, for test1.o they are
unrelaxed and identical.

We are currently speculating whether this is a bug in binutils or in the
compiler used to compile this particular version of binutils on sh4 is to be
blamed since the earlier, working version of binutils on sh4 was compiled with
an older version of gcc.

glaubitz@yamato:~/ldtest$ uname -a
Linux yamato 3.2.44-00829-g14e6110 #3901 PREEMPT Tue Jun 18 08:54:19 JST 2013
sh4a GNU/Linux
glaubitz@yamato:~/ldtest$ ld -c
ld: unrecognized option '-c'
ld: use the --help option for usage information
glaubitz@yamato:~/ldtest$ ld -v
GNU ld (GNU Binutils for Debian) 2.24.90.20141023
glaubitz@yamato:~/ldtest$ ld -shared --eh-frame-hdr -o test.so test1.o test2.o
--print-map | grep -B1 relaxing
ld: .eh_frame_hdr table[0] FDE at 0500 overlaps table[1] FDE at 0528.
 .eh_frame  0x0500   0x80 test2.o
 0xb0 (size before relaxing)

mkarcher@aquila:/tmp/sh4$ uname -a
Linux aquila 3.13.0-rc1+ #7 SMP Fri Nov 22 23:16:16 CET 2013 x86_64 GNU/Linux
mkarcher@aquila:/tmp/sh4$
/home/karcher/src/Development/binutils/binutils-2.24.90.20141023/builddir-sh4-linux-gnu/ld/ld-new
-v
GNU ld (GNU Binutils for Debian) 2.24.90.20141023
mkarcher@aquila:/tmp/sh4$
/home/karcher/src/Development/binutils/binutils-2.24.90.20141023/builddir-sh4-linux-gnu/ld/ld-new
-shared --eh-frame-hdr -o test.so test1.o test2.o --print-map | grep -B1
relaxing
 .eh_frame  0x04f0   0x2c test2.o
 0xb0 (size before relaxing)

-- 
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/17553] .eh_frame_hdr table[0] FDE at 00000978 overlaps table[1] FDE at 000009a0 when not using "-Wl,-traditional" on sh4

2014-11-05 Thread glaubitz at physik dot fu-berlin.de
https://sourceware.org/bugzilla/show_bug.cgi?id=17553

--- Comment #7 from glaubitz at physik dot fu-berlin.de  ---
(In reply to glaub...@physik.fu-berlin.de from comment #6)
> Some further tests with the same version of binutils on both sh4 and
> cross-building on x86_64

Sorry, I meant cross-linking on x86_64. The same object files were used on both
sh4 and x86_64, taken from the attachement of this bug report.

-- 
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/17512] segfault in PE parser / _bfd_pei_swap_aouthdr_in

2014-11-05 Thread cherepan at mccme dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=17512

--- Comment #67 from Alexander Cherepanov  ---
Created attachment 7905
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7905&action=edit
More crashers for `objdump -x`

Files: 9
Errors:
 29 Conditional jump or move depends on uninitialised value(s)
  3 Invalid read of size ...
  1 Process terminating with default action of signal 11 (SIGSEGV)
  4 Use of uninitialised value of size ...

-- 
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/17531] readelf -a crashes on fuzzed samples

2014-11-05 Thread cherepan at mccme dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=17531

--- Comment #12 from Alexander Cherepanov  ---
Created attachment 7906
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7906&action=edit
More badness for `readelf -a`

Files: 16
Errors:
 13 Argument 'size' of function malloc has a fishy (possibly negative)
value: ...
  3 Conditional jump or move depends on uninitialised value(s)
  1 Invalid read of size ...
  1 Process terminating with default action of signal 11 (SIGSEGV)
  2 Use of uninitialised value of size ...

Not all samples crash with SIGSEGV, most have problems with memory allocation.
Anyway all their badness is described in list.txt inside the archive.

-- 
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/17553] .eh_frame_hdr table[0] FDE at 00000978 overlaps table[1] FDE at 000009a0 when not using "-Wl,-traditional" on sh4

2014-11-05 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=17553

--- Comment #8 from Alan Modra  ---
> .eh_frame  0x0500   0x80 test2.o
> 0xb0 (size before relaxing)
That says the duplicate CIE has been dropped, but not the FDE for the discarded
section.  (Hmm, check that the map file lists the discarded sections from
test2.o comdat groups)

> .eh_frame  0x04f0   0x2c test2.o
> 0xb0 (size before relaxing)
Whereas here both the CIE and FDE have been dropped, as they should be.

The decision to drop FDEs is made in elf_eh_frame.c line 1175:
keep = !(*reloc_symbol_deleted_p) (ent->offset + 8, cookie);

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