[Bug ld/20528] ld -r doesn't handle SHF_EXCLUDE section properly

2016-09-30 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20528

Nick Clifton  changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 CC||nickc at redhat dot com
 Resolution|FIXED   |---

--- Comment #5 from Nick Clifton  ---
Hi H.J.

  Your test for this PR has introduced some new linker testsuite failures:

Checking Binutils in: msp430-elf ... LD: 2 done
  LD REGRESSION: ld-elf/pr20528a
  LD REGRESSION: ld-elf/pr20528b
Checking Binutils in: mt-elf ... LD: 3 done
  LD REGRESSION: ld-elf/pr20528a
  LD REGRESSION: ld-elf/pr20528b
Checking Binutils in: nds32le-elf ... GAS: 3 LD: 16 done
  LD REGRESSION: ld-elf/pr20528a
  LD REGRESSION: ld-elf/pr20528b
Checking Binutils in: i860-stardent-elf ... LD: 2 done
  LD REGRESSION: ld-elf/pr20528a
  LD REGRESSION: ld-elf/pr20528b
Checking Binutils in: iq2000-elf ... LD: 2 done
  LD REGRESSION: ld-elf/pr20528a
  LD REGRESSION: ld-elf/pr20528b
Checking Binutils in: pj-elf ... GAS: 1 LD: 2 done
  LD REGRESSION: ld-elf/pr20528a
  LD REGRESSION: ld-elf/pr20528b
Checking Binutils in: fr30-elf ... LD: 2 done
  LD REGRESSION: ld-elf/pr20528a
  LD REGRESSION: ld-elf/pr20528b
Checking Binutils in: ft32-elf ... LD: 4 done
  LD REGRESSION: ld-elf/pr20528a
  LD REGRESSION: ld-elf/pr20528b
Checking Binutils in: moxie-elf ... LD: 4 done
  LD REGRESSION: ld-elf/pr20528a
  LD REGRESSION: ld-elf/pr20528b
Checking Binutils in: cr16-elf ... LD: 2 done
  LD REGRESSION: ld-elf/pr20528a
  LD REGRESSION: ld-elf/pr20528b
Checking Binutils in: crx-elf ... LD: 2 done
  LD REGRESSION: ld-elf/pr20528a
  LD REGRESSION: ld-elf/pr20528b
Checking Binutils in: d10v-elf ... LD: 2 done
  LD REGRESSION: ld-elf/pr20528a
  LD REGRESSION: ld-elf/pr20528b
Checking Binutils in: d30v-elf ... LD: 2 done
  LD REGRESSION: ld-elf/pr20528a
  LD REGRESSION: ld-elf/pr20528b
Checking Binutils in: dlx-elf ... LD: 4 done
  LD REGRESSION: ld-elf/pr20528a
  LD REGRESSION: ld-elf/pr20528b
Checking Binutils in: frv-elf ... LD: 2 done
  LD REGRESSION: ld-elf/pr20528a
  LD REGRESSION: ld-elf/pr20528b
Checking Binutils in: hppa-linux-gnu ... LD: 16 done
  LD REGRESSION: ld-elf/pr20528a
  LD REGRESSION: ld-elf/pr20528b

Please could you fix these ?

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/20528] ld -r doesn't handle SHF_EXCLUDE section properly

2016-09-30 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=20528

--- Comment #6 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=80169c8a23d9bd3f213028e3d44239b03d0aedf7

commit 80169c8a23d9bd3f213028e3d44239b03d0aedf7
Author: Alan Modra 
Date:   Fri Sep 30 16:09:42 2016 +0930

Fix pr20528 testsuite

PR ld/20528
* testsuite/ld-elf/pr20528a.d: xfail generic elf targets.  Allow
multiple .text sections for hppa-linux.
* testsuite/ld-elf/pr20528b.d: Likewise.

-- 
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/20528] ld -r doesn't handle SHF_EXCLUDE section properly

2016-09-30 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20528

Nick Clifton  changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution|--- |FIXED

--- Comment #7 from Nick Clifton  ---
(In reply to Nick Clifton from comment #5)

Never mind - Alan has already fixed them. :-)

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/20659] New: Objcopy and change section lma failing

2016-09-30 Thread neil.jones at imgtec dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20659

Bug ID: 20659
   Summary: Objcopy and change section lma failing
   Product: binutils
   Version: 2.24
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: neil.jones at imgtec dot com
  Target Milestone: ---

Created attachment 9545
  --> https://sourceware.org/bugzilla/attachment.cgi?id=9545&action=edit
elf file with .MIPS.abiflags section.

objcopy fails when trying to adjust the lma of the section ".MIPS.abiflags"

The relevant line:

--change-section-lma .MIPS.abiflags-0x8000 \

The error:

BFD: hello_flash_physical.elf: warning: allocated section `.MIPS.abiflags' not
in segment

I thought this might be due to the period in the middle of the section name, I
have tried:

--change-section-lma ".MIPS.abiflags"-0x8000 \
--change-section-lma '.MIPS.abiflags'-0x8000 \
--change-section-lma .MIPS\.abiflags-0x8000 \

all to no avail...

$ objdump -h -w hello_flash.elf | grep MIPS
11 .MIPS.abiflags 0018  9d002cd8  9d002cd8  00012cd8

Objcopy version is 2.24.90:

GNU objcopy (Codescape GNU Tools 2016.05-03 for MIPS MTI Bare Metal)
2.24.90 Copyright (C) 2014 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 (at your option) any later version.

Full Command:

objcopy --change-section-lma .bootflash-0xA000 \
--change-section-lma
.exception_vector-0x8000 \
--change-section-lma .text-0x8000 \
--change-section-lma .init-0x8000 \
--change-section-lma .fini-0x8000 \
--change-section-lma .eh_frame-0x8000 \
--change-section-lma .jcr-0x8000 \
--change-section-lma .ctors-0x8000 \
--change-section-lma .dtors-0x8000 \
--change-section-lma .rodata-0x8000 \
--change-section-lma .data-0x8000 \
--change-section-lma .bss-0x8000 \
--change-section-lma .startdata-0x8000 \
--change-section-lma .MIPS.abiflags-0x8000
\
pic32_hello_flash.elf
pic32_hello_flash_physical.elf

If I omit the change to .MIPS.abiflags all other sections LMA's get adjusted
correctly.

elf file is attached.

Cheers,

Neil.

-- 
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/20553] Bug in objdump when disassembling fmul, fmla and fmls

2016-09-30 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=20553

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

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

commit 744ce3025e82a59c13642c57e38febd8ff531f9b
Author: Jiong Wang 
Date:   Fri Sep 30 14:16:54 2016 +0100

[AArch64] PR target/20553, fix opcode mask for SIMD multiply by element

opcode/
PR target/20553
* aarch64-tbl.h (fmla, fmls, fmul, fmulx): Fix opcode mask field.

gas/
* testsuite/gas/aarch64/advsimd-fp16.s (indexed_elem): New high
index
testcases for H and S variants.  New low index testcases for D
variant.
* testsuite/gas/aarch64/advsimd-fp16.d: Update expected results.

-- 
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/20553] Bug in objdump when disassembling fmul, fmla and fmls

2016-09-30 Thread jiwang at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=20553

Jiong Wang  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
Version|2.26|2.28 (HEAD)
 Resolution|--- |FIXED

--- Comment #3 from Jiong Wang  ---
Fixed on master.  Will commit to 2.26/2.27 once backporting approved.

-- 
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/20649] [MIPS] Can't find matching LO16 reloc

2016-09-30 Thread james410 at cowgill dot org.uk
https://sourceware.org/bugzilla/show_bug.cgi?id=20649

--- Comment #3 from James Cowgill  ---
Thanks for the patch, it seems to work. I ran a full build of blender where the
bug originally came from and it builds fine now.

James

-- 
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/20657] buglet in putop() in opcodes/i386-dis.c

2016-09-30 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=20657

--- Comment #2 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=72da393d4131836933f104abf0f605e09970f134

commit 72da393d4131836933f104abf0f605e09970f134
Author: H.J. Lu 
Date:   Fri Sep 30 08:54:43 2016 -0700

Don't assign alt twice

PR binutils/20657
* i386-dis.c (putop): Don't assign alt twice.

-- 
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/20657] buglet in putop() in opcodes/i386-dis.c

2016-09-30 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20657

H.J. Lu  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
Version|unspecified |2.28 (HEAD)
 Resolution|--- |FIXED
   Target Milestone|--- |2.28

--- Comment #3 from H.J. Lu  ---
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/20657] buglet in putop() in opcodes/i386-dis.c

2016-09-30 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20657

H.J. Lu  changed:

   What|Removed |Added

   Assignee|unassigned at sourceware dot org   |hjl.tools at gmail dot 
com

--- Comment #1 from H.J. Lu  ---
The change from:

https://sourceware.org/ml/binutils/2007-09/msg00413.html

@@ -5695,24 +5867,10 @@ putop (const char *template, int sizefla
case '{':
  alt = 0;
  if (intel_syntax)
-   alt += 1;
- if (address_mode == mode_64bit)
-   alt += 2;
- while (alt != 0)
{
  while (*++p != '|')
-   {
- if (*p == '}')
-   {
- /* Alternative not valid.  */
- strcpy (obuf, "(bad)");
- obufp = obuf + 5;
- return 1;
-   }
- else if (*p == '\0')
-   abort ();
-   }
- alt--;
+   if (*p == '}' || *p == '\0')
+ abort ();
}
  /* Fall through.  */
case 'I':

should also remove "alt = 0".

-- 
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/20649] [MIPS] Can't find matching LO16 reloc

2016-09-30 Thread aurelien at aurel32 dot net
https://sourceware.org/bugzilla/show_bug.cgi?id=20649

Aurelien Jarno  changed:

   What|Removed |Added

 CC||aurelien at aurel32 dot net

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