[Bug binutils/28959] New: obdump doesn't decode anymore mftb instruction (elf32-powerpc)

2022-03-13 Thread christophe.leroy at csgroup dot eu
https://sourceware.org/bugzilla/show_bug.cgi?id=28959

Bug ID: 28959
   Summary: obdump doesn't decode anymore mftb instruction
(elf32-powerpc)
   Product: binutils
   Version: 2.37
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: christophe.leroy at csgroup dot eu
  Target Milestone: ---

vmlinux: file format elf32-powerpc


Disassembly of section .text:

c000d810 :
...
c000d838:   93 e1 00 1c stw r31,28(r1)
c000d83c:   60 00 00 00 nop
==> c000d840:   7d 8c 42 e6 .long 0x7d8c42e6
c000d844:   83 e2 00 08 lwz r31,8(r2)
c000d848:   80 02 00 28 lwz r0,40(r2)


With binutils 2.36.1:

c000d838:   93 e1 00 1c stw r31,28(r1)
c000d83c:   60 00 00 00 nop
==> c000d840:   7d 8c 42 e6 mftbr12
c000d844:   83 e2 00 08 lwz r31,8(r2)
c000d848:   80 02 00 28 lwz r0,40(r2)

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


[Bug binutils/28959] obdump doesn't decode anymore mftb instruction (elf32-powerpc)

2022-03-13 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=28959

Alan Modra  changed:

   What|Removed |Added

   Assignee|unassigned at sourceware dot org   |amodra at gmail dot com
 Ever confirmed|0   |1
 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2022-03-13

--- Comment #1 from Alan Modra  ---
Regressed with commit 1ff6a3b8e562.

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


[Bug binutils/28959] obdump doesn't decode anymore mftb instruction (elf32-powerpc)

2022-03-13 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=28959

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

commit b508e46bf9c5b2cef5821b399dfc3b8009a81836
Author: Alan Modra 
Date:   Sun Mar 13 22:54:25 2022 +1030

PR28959, obdump doesn't disassemble mftb instruction

Without a -M cpu option given, powerpc objdump defaults currently to
-Mpower10 but -Many is also given.  Commit 1ff6a3b8e562 regressed
-Many disassembly of instructions that are encoded differently
depending on cpu, such as mftb which has pre- and post-power4
encodings.

PR 28959
* ppc-dis.c (lookup_powerpc): Revert 2021-05-28 change.  Instead
only look at deprecated PPC_OPCODE_RAW bit when -Many.

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


[Bug gas/27472] gas: Suppress "CFI instruction used without previous .cfi_startproc" if .cfi_sections is empty

2022-03-13 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=27472

Sam James  changed:

   What|Removed |Added

 CC||sam at gentoo dot org

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


[Bug binutils/28959] obdump doesn't decode anymore mftb instruction (elf32-powerpc)

2022-03-13 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=28959

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

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

commit fcf60fe8482346f543efdc4879a34c6bbd9cfea9
Author: Alan Modra 
Date:   Sun Mar 13 22:54:25 2022 +1030

PR28959, obdump doesn't disassemble mftb instruction

Without a -M cpu option given, powerpc objdump defaults currently to
-Mpower10 but -Many is also given.  Commit 1ff6a3b8e562 regressed
-Many disassembly of instructions that are encoded differently
depending on cpu, such as mftb which has pre- and post-power4
encodings.

PR 28959
* ppc-dis.c (lookup_powerpc): Revert 2021-05-28 change.  Instead
only look at deprecated PPC_OPCODE_RAW bit when -Many.

(cherry picked from commit b508e46bf9c5b2cef5821b399dfc3b8009a81836)

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


[Bug binutils/28959] obdump doesn't decode anymore mftb instruction (elf32-powerpc)

2022-03-13 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=28959

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

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

commit feee8c08486a8668d2a7dac4df86a40fa0ebb39f
Author: Alan Modra 
Date:   Sun Mar 13 22:54:25 2022 +1030

PR28959, obdump doesn't disassemble mftb instruction

Without a -M cpu option given, powerpc objdump defaults currently to
-Mpower10 but -Many is also given.  Commit 1ff6a3b8e562 regressed
-Many disassembly of instructions that are encoded differently
depending on cpu, such as mftb which has pre- and post-power4
encodings.

PR 28959
* ppc-dis.c (lookup_powerpc): Revert 2021-05-28 change.  Instead
only look at deprecated PPC_OPCODE_RAW bit when -Many.

(cherry picked from commit b508e46bf9c5b2cef5821b399dfc3b8009a81836)

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


[Bug ld/28497] "make check" isn't clean for LoongArch

2022-03-13 Thread liuzhensong at loongson dot cn
https://sourceware.org/bugzilla/show_bug.cgi?id=28497

liuzhensong  changed:

   What|Removed |Added

 CC||liuzhensong at loongson dot cn

--- Comment #1 from liuzhensong  ---
For --target=loongarch64-linux-gnu
  fix bugs:
  FAIL: ld-elf/pr21884
  FAIL: ld-elf/pr26936
  FAIL: --gc-sections with __gxx_personality
  FAIL: Reloc against IFUNC symbol in NOTE section
  FAIL: Reloc against IFUNC symbol in NOTE section
  in patch
  https://sourceware.org/pipermail/binutils/2022-March/120004.html  
  and skip some unsupport testcases
  https://sourceware.org/pipermail/binutils/2022-March/120010.html



For --target=loongarch32-linux-gnu
  fix bugs:
  FAIL: ld-elf/pr21884
  FAIL: ld-elf/pr22450
  FAIL: ld-elf/pr26936
  FAIL: __patchable_function_entries section 2
  FAIL: __patchable_function_entries section 3
  FAIL: __patchable_function_entries section 4
  FAIL: __patchable_function_entries section 5
  FAIL: __patchable_function_entries section 6
  FAIL: --gc-sections with __gxx_personality
  FAIL: Reloc against IFUNC symbol in NOTE section
  FAIL: Reloc against IFUNC symbol in NOTE section
  in patch
  https://sourceware.org/pipermail/binutils/2022-March/120011.html

  fix bugs:
  FAIL: ld-loongarch-elf/jmp_op
  FAIL: ld-loongarch-elf/macro_op
  FAIL: jirl zero-offset symbols 
  in patch
  https://sourceware.org/pipermail/binutils/2022-March/120012.html

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