[Bug binutils/20063] Segmentation fault on objdump -D (with invalid SHT_GROUP entry)

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

--- Comment #4 from Nick Clifton  ---
Hi Paul.

> Would it be possible to get notified when this is going to be pushed in a
> release or anything so I can try it with couple of other crashes I have (with
> the invalid SHT_GROUP entry again) 

I will try to remember to do this.

The patch may well surface in a Linux distribution before it appears in an
official FSF release however, so you might want to check those out too.

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 gold/20062] Gold2.26 fail to link Uefi firmware with internal error in do_layout, but ld works

2016-05-11 Thread steven.shi at intel dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20062

Steven Shi  changed:

   What|Removed |Added

 CC||steven.shi at intel 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 gas/20068] GAS complains about ‘Error: floating point number invalid‘ when producing a literal pool.

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

Nick Clifton  changed:

   What|Removed |Added

 CC||nickc at redhat dot com

--- Comment #1 from Nick Clifton  ---
Hi Chua,

> Assembling the following ARM assembly will result in gas complaining:
> LDR R0, =0x12345678
> FLDD D9, =0xfff00fff
> .LTORG
> ‘Error: floating point number invalid‘

What command line did you use to trigger this error ?

I tried:

  as -mfpu-vfpxd pr20068.s

but this assembles without any complaints.

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/20047] The arc assembler outputs an "unrecognized option" error with a weird character in it

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

Nick Clifton  changed:

   What|Removed |Added

 CC||nickc at redhat dot com

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

Hi David,

  This was a snafu.  I am applying this patch to fix the problem.

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/20047] The arc assembler outputs an "unrecognized option" error with a weird character in it

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

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

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

commit e2e3ca03ef70a42e34df743e9369ecb23726e921
Author: Nick Clifton 
Date:   Wed May 11 11:41:28 2016 +0100

Accept and ignore dummy command line options in the ARC backend of GAS.

PR gas/20047
* config/tc-arc.c (md_parse_option): Return 1 for recognised dummy
options.

-- 
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/20047] The arc assembler outputs an "unrecognized option" error with a weird character in it

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

Nick Clifton  changed:

   What|Removed |Added

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

--- Comment #3 from Nick Clifton  ---
Patch applied

-- 
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/20068] GAS complains about ‘Error: floating point number invalid‘ when producing a literal pool.

2016-05-11 Thread chuazl at comp dot nus.edu.sg
https://sourceware.org/bugzilla/show_bug.cgi?id=20068

--- Comment #2 from Chua Zheng Leong  ---
Hi Nick,

root@melynx-squirrel:~/binutils-gdb/gas# ./as-new --version
GNU assembler (GNU Binutils) 2.26.51.20160510
Copyright (C) 2016 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `armv7l-unknown-linux-gnueabihf'.

root@melynx-squirrel:~/binutils-gdb/gas# ./as-new test.s -mfpu=vfpv3
test.s: Assembler messages:
test.s:10: Error: floating point number invalid

root@melynx-squirrel:~/binutils-gdb/gas# cat test.s
.global main

main:
LDR R0, =0x12345678
@LDR R0, =0x87654321
FLDD D9, =0xfff00fff
@FLDD D9, =0
@FLDD D9, =0x0
MOV PC, LR
.ltorg

Regards,
Zheng Leong

-- 
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/20068] GAS complains about ‘Error: floating point number invalid‘ when producing a literal pool.

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

--- Comment #3 from Nick Clifton  ---
Hi Chua,

   Ah - this assembler was compiled for a 32-bit host, yes ?

   Running the same test using an assembler compiled for a 64-bit
   host does not produce the error because a bignum is not produced
   for the floating point constant...

   OK - so now that I can reproduce the problem, I agree that your
   patch is the correct solution.  I am going to check it in, along
   with the testcase.

   Thanks very much for reporting - and fixing - this bug.

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/20068] GAS complains about ‘Error: floating point number invalid‘ when producing a literal pool.

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

--- Comment #4 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=a6684f0dddb292873f962dc36b20e6db00ef6b09

commit a6684f0dddb292873f962dc36b20e6db00ef6b09
Author: Nick Clifton 
Date:   Wed May 11 12:51:04 2016 +0100

Ensure that padding in the constant pool uses constant values.

PR target/20068
* config/tc-arm.c (add_to_lit_pool): Ensure that the padding added
to the pool uses O_constant.
* testsuite/gas/arm/pr20068.s: New test.
* testsuite/gas/arm/pr20068.d: Test driver.

-- 
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/20068] GAS complains about ‘Error: floating point number invalid‘ when producing a literal pool.

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

Nick Clifton  changed:

   What|Removed |Added

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

--- Comment #5 from Nick Clifton  ---
Patch applied

-- 
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/20060] ld --gc-sections fail with __tls_get_addr_opt

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

Alan Modra  changed:

   What|Removed |Added

 Target|powerpc64le-linux-gnu   |powerpc*
   Host|powerpc64le-linux-gnu   |
Summary|ld 2.26 "relocation |ld --gc-sections fail with
   |truncated" failure on   |__tls_get_addr_opt
   |powerpc64le on Ubuntu 16.04 |

-- 
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/20060] ld --gc-sections fail with __tls_get_addr_opt

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

--- Comment #1 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=3bd43ebcb6025a8a43f119238f490e2e238697a2

commit 3bd43ebcb6025a8a43f119238f490e2e238697a2
Author: Alan Modra 
Date:   Wed May 11 21:54:05 2016 +0930

ld --gc-sections fail with __tls_get_addr_opt

When --gc-sections is active, __tls_get_addr_opt is marked as not
needed and forced local before ppc*_elf_tls_setup is run.

bfd/
PR 20060
* elf64-ppc.c (ppc64_elf_tls_setup): Clear forced_local.
* elf32-ppc.c (ppc_elf_tls_setup): Likewise.
ld/
PR 20060
* testsuite/ld-powerpc/powerpc.exp: Run new tests.
* testsuite/ld-powerpc/tlsdll.s: New.
* testsuite/ld-powerpc/tlsdll.ver: New.
* testsuite/ld-powerpc/tlsdll_32.s: New.
* testsuite/ld-powerpc/tlsopt5.d: New.
* testsuite/ld-powerpc/tlsopt5.s: New.
* testsuite/ld-powerpc/tlsopt5_32.d: New.
* testsuite/ld-powerpc/tlsopt5_32.s: New.

-- 
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/20060] ld --gc-sections fail with __tls_get_addr_opt

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

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

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

commit ad79d09b98fcb5574b1353554018762628d2be88
Author: Alan Modra 
Date:   Wed May 11 21:54:05 2016 +0930

ld --gc-sections fail with __tls_get_addr_opt

When --gc-sections is active, __tls_get_addr_opt is marked as not
needed and forced local before ppc*_elf_tls_setup is run.

bfd/
PR 20060
* elf64-ppc.c (ppc64_elf_tls_setup): Clear forced_local.
* elf32-ppc.c (ppc_elf_tls_setup): Likewise.
ld/
PR 20060
* testsuite/ld-powerpc/powerpc.exp: Run new tests.
* testsuite/ld-powerpc/tlsdll.s: New.
* testsuite/ld-powerpc/tlsdll.ver: New.
* testsuite/ld-powerpc/tlsdll_32.s: New.
* testsuite/ld-powerpc/tlsopt5.d: New.
* testsuite/ld-powerpc/tlsopt5.s: New.
* testsuite/ld-powerpc/tlsopt5_32.d: New.
* testsuite/ld-powerpc/tlsopt5_32.s: New.

-- 
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/20060] ld --gc-sections fail with __tls_get_addr_opt

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

Alan Modra  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED
   Target Milestone|--- |2.26

--- Comment #3 from Alan Modra  ---
Fixed master and 2.26

-- 
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/20022] --gc-sections is broken with __start_ and shared library

2016-05-11 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20022

--- Comment #6 from H.J. Lu  ---
(In reply to Nick Clifton from comment #5)
> (In reply to H.J. Lu from comment #4)
> 
> > Somewhere in _bfd_elf_is_start_stop?
> 
> I don't think that will work.  We only want to trigger if an orphan section
> is being referenced solely via its start/stop symbols, and I don't think that
> we can determine this in _bfd_elf_is_start_stop.
> 
> Still if you have a potential patch to suggest I would be happy to take a
> look.

I don't have a real patch.  This patch:

https://sourceware.org/ml/binutils/2016-04/msg00449.html

contains changes to _bfd_elf_is_start_stop to detect such
case.  It may be used to issue an error.

> I think that the patch should produce a warning/error message, rather than an
> abort however, since the user is not doing anything wrong.

An error is better.

-- 
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/20068] GAS complains about ‘Error: floating point number invalid‘ when producing a literal pool.

2016-05-11 Thread clyon at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=20068

Christophe Lyon  changed:

   What|Removed |Added

 CC||clyon at gcc dot gnu.org

--- Comment #6 from Christophe Lyon  ---
Hi Nick,

The new test fails on armeb-linux-gnueabihf:
./gas/testsuite/gas.sum:FAIL: PR20068 - Misaligned constant pool when running
GAS on a 32-bit host.

-- 
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/20068] GAS complains about ‘Error: floating point number invalid‘ when producing a literal pool.

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

--- Comment #7 from Nick Clifton  ---
Hi Christophe,

> The new test fails on armeb-linux-gnueabihf:
> ./gas/testsuite/gas.sum:FAIL: PR20068 - Misaligned constant pool when running
> GAS on a 32-bit host.

Ah -  forgot to allow for big endian ARMs.  Sorry.

I am going to check in the patch below to fix this.

Cheers
  Nick

gas/ChangeLog
2016-05-11  Nick Clifton  

PR target/20068
* testsuite/gas/arm/pr20068.d: Adjust expected output to allow for
big endian ARM configurations.


diff --git a/gas/testsuite/gas/arm/pr20068.d b/gas/testsuite/gas/arm/pr20068.d
index b694c0e..21c4432 100644
--- a/gas/testsuite/gas/arm/pr20068.d
+++ b/gas/testsuite/gas/arm/pr20068.d
@@ -14,5 +14,5 @@ Disassembly of section .text:
c:  .*
   10:  12345678.*
   14:  .*
-  18:  0fff.*
-  1c:  fff0.*
+  18:  [0fff|fff0].*
+  1c:  [fff0|0fff].*

-- 
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/20070] LLVM gold plugin(LLVMgold.so) report Unexpected resolution failure on ld when LTO, but pass on gold

2016-05-11 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20070

--- Comment #1 from H.J. Lu  ---
Created attachment 9253
  --> https://sourceware.org/bugzilla/attachment.cgi?id=9253&action=edit
A patch

Please try this.

-- 
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/20070] LLVM gold plugin(LLVMgold.so) report Unexpected resolution failure on ld when LTO, but pass on gold

2016-05-11 Thread steven.shi at intel dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20070

--- Comment #2 from Steven Shi  ---
Hi H.J.
Your patch works for me. Thank you!

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