[Bug gas/26513] New: 629310abec8811510177101f3c7992dfd4be24dd breaks assembling PowerPC Linux kernels

2020-08-20 Thread natechancellor at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26513

Bug ID: 26513
   Summary: 629310abec8811510177101f3c7992dfd4be24dd breaks
assembling PowerPC Linux kernels
   Product: binutils
   Version: 2.36 (HEAD)
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: gas
  Assignee: unassigned at sourceware dot org
  Reporter: natechancellor at gmail dot com
  Target Milestone: ---

When building the Linux kernel for some PowerPC targets with LLVM + gas (since
LLVM's integrated assembler is not quite on par with some assembly used in the
Linux kernel) after 629310abec8811510177101f3c7992dfd4be24dd, the following
error occurs:

$ make -skj"$(nproc)" ARCH=powerpc CROSS_COMPILE=powerpc64-linux-gnu- LLVM=1
O=out/ppc64 distclean pseries_defconfig arch/powerpc/kernel/entry_64.o
...
arch/powerpc/kernel/entry_64.S: Assembler messages:
 arch/powerpc/kernel/entry_64.S:541: Error: junk at
end of line: `0b01010'
...

$ git bisect log
# bad: [c2fd7faea8f2c3a267f276ceb6a95f9f537ea7c1] Fix for incorrect breakpoint
set in case of flang compiled binary
# good: [5a2296ac1b3c26cab589bddfded07a560e434d03] Use is_xcoff_format in
binutils testsuite
git bisect start 'c2fd7faea8f2c3a267f276ceb6a95f9f537ea7c1'
'5a2296ac1b3c26cab589bddfded07a560e434d03'
# good: [8c419a91d761989b824d1bbe3b4575068317181e] libctf: fixes for systems on
which sizeof (void *) > sizeof (long)
git bisect good 8c419a91d761989b824d1bbe3b4575068317181e
# good: [c86d3e85e85d76555acdb955aba062beb02f] [gdb] Fix prop->const_val
uses in gdbtypes.c
git bisect good c86d3e85e85d76555acdb955aba062beb02f
# good: [404ec93359eaaf6a4284613e9c3ac014eea9383b] Only warn about malformed
win32pstatus notes
git bisect good 404ec93359eaaf6a4284613e9c3ac014eea9383b
# good: [3d11c30a6e839cfc126353fd1b35960301a1b6a0] [gdb/testsuite] Fix charlen
type in mixed-lang-stack.c
git bisect good 3d11c30a6e839cfc126353fd1b35960301a1b6a0
# good: [587a4371760ea2d4dc82571d488def304a3981ca] Add ChangeLog entries for
previous commit.
git bisect good 587a4371760ea2d4dc82571d488def304a3981ca
# good: [2b272f449e8664977d0aafba82c416b27b5f2d6f] Use libiberty hash in
gas/macro.c.
git bisect good 2b272f449e8664977d0aafba82c416b27b5f2d6f
# good: [f7a5981beb423a0bc03633ac8156d33d83ef41d6] Port ecoff.c to str_hash.
git bisect good f7a5981beb423a0bc03633ac8156d33d83ef41d6
# bad: [629310abec8811510177101f3c7992dfd4be24dd] Port gas/config/* to
str_htab.
git bisect bad 629310abec8811510177101f3c7992dfd4be24dd
# good: [494b2fc8078502f84a2ff2a3402a5989b221526d] Port dw2gencfi.c to
str_htab.
git bisect good 494b2fc8078502f84a2ff2a3402a5989b221526d
# first bad commit: [629310abec8811510177101f3c7992dfd4be24dd] Port
gas/config/* to str_htab.

If you need further information or reproduction steps, I am happy to provide
them.

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


[Bug gas/26513] 629310abec8811510177101f3c7992dfd4be24dd breaks assembling PowerPC Linux kernels

2020-08-20 Thread natechancellor at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26513

Nathan Chancellor  changed:

   What|Removed |Added

 CC||amodra at gmail dot com,
   ||mliska at suse dot cz

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


[Bug gas/26513] 629310abec8811510177101f3c7992dfd4be24dd breaks assembling PowerPC Linux kernels

2020-08-23 Thread natechancellor at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26513

Nathan Chancellor  changed:

   What|Removed |Added

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

--- Comment #3 from Nathan Chancellor  ---
I can confirm that patch fixes this issue, thank you!

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


[Bug gas/26526] New: 5014c2d22b2627eb1ac88a4763a58d431fe064a7 breaks compiling the Linux kernel for 32-bit ARM

2020-08-23 Thread natechancellor at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26526

Bug ID: 26526
   Summary: 5014c2d22b2627eb1ac88a4763a58d431fe064a7 breaks
compiling the Linux kernel for 32-bit ARM
   Product: binutils
   Version: 2.36 (HEAD)
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: gas
  Assignee: unassigned at sourceware dot org
  Reporter: natechancellor at gmail dot com
  Target Milestone: ---

When building the Linux kernel for 32-bit ARM with LLVM and assembling with gas
after 5014c2d22b2627eb1ac88a4763a58d431fe064a7, there is a segmentation fault.

$ make -skj"$(nproc)" ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- LLVM=1
O=out/arm distclean defconfig kernel/printk/printk.o
/tmp/printk-b93386.s: Assembler messages:
/tmp/printk-b93386.s:7753: Internal error (Segmentation fault).
Please report this bug.
clang-12: error: assembler command failed with exit code 1 (use -v to see
invocation)
...

$ git bisect log
# bad: [c40e66502cd6cdeea4b16f627059296433b4d48b] Disable default ELF plugins
on 32-bit hppa*-*-hpux*.
# good: [4b495c31c14087e851662e790e4ca12bce37dab1] Automatic date update in
version.in
git bisect start 'c40e66502cd6cdeea4b16f627059296433b4d48b'
'4b495c31c14087e851662e790e4ca12bce37dab1'
# good: [78c02f21ad122c2c775cb6629bb20829b2cafa01] Use gdb::function_view in
iterate_over_live_ada_tasks
git bisect good 78c02f21ad122c2c775cb6629bb20829b2cafa01
# good: [82fcdb39388c6690699d41b7022b054c2de2554c] PR26388, objdump debug dump
memory leaks
git bisect good 82fcdb39388c6690699d41b7022b054c2de2554c
# good: [abebb03c3af215d7542f5e6b71d78823b15220d5] gas/hash.c: add new
functions
git bisect good abebb03c3af215d7542f5e6b71d78823b15220d5
# good: [b70e516e89d95d06252cb04ded3397ec0a0a3212] gdb: handle the `ptid.is_pid
()` case in registers_changed_ptid
git bisect good b70e516e89d95d06252cb04ded3397ec0a0a3212
# bad: [ccf61261eb8cce869ae4452de547a5f3afb074e4] Fix problems with the AArch64
linker exposed by testing it with sanitization enabled.
git bisect bad ccf61261eb8cce869ae4452de547a5f3afb074e4
# good: [e01e1cee39777b6278ff01502742347247e8dfd7] Rearrange symbol_create
parameters
git bisect good e01e1cee39777b6278ff01502742347247e8dfd7
# bad: [5014c2d22b2627eb1ac88a4763a58d431fe064a7] Redo gas local symbol support
git bisect bad 5014c2d22b2627eb1ac88a4763a58d431fe064a7
# good: [3c0d9d71db89b5b55ae7f6cb180f4f548efa4bef] gas symbol struct field
renaming
git bisect good 3c0d9d71db89b5b55ae7f6cb180f4f548efa4bef
# first bad commit: [5014c2d22b2627eb1ac88a4763a58d431fe064a7] Redo gas local
symbol support

If you would like more information, I am happy to provide it, just let me know
what I need to do.

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


[Bug gas/26526] 5014c2d22b2627eb1ac88a4763a58d431fe064a7 breaks compiling the Linux kernel for 32-bit ARM

2020-08-23 Thread natechancellor at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26526

Nathan Chancellor  changed:

   What|Removed |Added

 CC||amodra at gmail dot com

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


[Bug gas/26526] 5014c2d22b2627eb1ac88a4763a58d431fe064a7 breaks compiling the Linux kernel for 32-bit ARM

2020-08-23 Thread natechancellor at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26526

--- Comment #2 from Nathan Chancellor  ---
Created attachment 12790
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12790&action=edit
printk.s

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


[Bug gas/26526] 5014c2d22b2627eb1ac88a4763a58d431fe064a7 breaks compiling the Linux kernel for 32-bit ARM

2020-08-23 Thread natechancellor at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26526

--- Comment #3 from Nathan Chancellor  ---
Hopefully, this works. If not, let me know.

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


[Bug gas/27221] New: Commit 058430b4a1ed7441dfc2e167bfdb9dc89ea9a209 introduces warnings while assembling the Linux kernel

2021-01-20 Thread natechancellor at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27221

Bug ID: 27221
   Summary: Commit 058430b4a1ed7441dfc2e167bfdb9dc89ea9a209
introduces warnings while assembling the Linux kernel
   Product: binutils
   Version: 2.37 (HEAD)
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: gas
  Assignee: unassigned at sourceware dot org
  Reporter: natechancellor at gmail dot com
  Target Milestone: ---

When I build some Linux kernel targets with tip of tree binutils, I see a
series of warnings like:

Warning: dwarf line number information for ... ignored

It looks like this was introduced by 058430b4a1ed7441dfc2e167bfdb9dc89ea9a209
according to my bisect. This is quite noisy in my builds as I see it with a
variety of configurations and architectures. For example, with the attached
cache-v7.s from the arch/arm directory:

$ as-new -EL -mfloat-abi=soft -march=armv7-a -mfpu=vfp -mno-warn-deprecated
-gdwarf-2 -o /dev/null cache-v7.s
arch/arm/mm/cache-v7.S:84: Warning: dwarf line number information for
.alt.smp.init ignored
arch/arm/mm/cache-v7.S:100: Warning: dwarf line number information for
.alt.smp.init ignored  
   
  arch/arm/mm/cache-v7.S:105: Warning:
dwarf line number information for .alt.smp.init ignored
arch/arm/mm/cache-v7.S:200: Warning: dwarf line number information for
.alt.smp.init ignored  
   
  arch/arm/mm/cache-v7.S:218: Warning:
dwarf line number information for .alt.smp.init ignored
arch/arm/mm/cache-v7.S:310: Warning: dwarf line number information for
.alt.smp.init ignored

Is this intentional? If so, what is the fix?

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


[Bug gas/27221] Commit 058430b4a1ed7441dfc2e167bfdb9dc89ea9a209 introduces warnings while assembling the Linux kernel

2021-01-20 Thread natechancellor at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27221

Nathan Chancellor  changed:

   What|Removed |Added

 CC||amodra at gmail dot com

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


[Bug gas/27221] Commit 058430b4a1ed7441dfc2e167bfdb9dc89ea9a209 introduces warnings while assembling the Linux kernel

2021-01-20 Thread natechancellor at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27221

Nathan Chancellor  changed:

   What|Removed |Added

 CC||natechancellor at gmail dot com

--- Comment #1 from Nathan Chancellor  ---
Created attachment 13141
  --> https://sourceware.org/bugzilla/attachment.cgi?id=13141&action=edit
arch/arm/mm/cache-v7.S, preprocessed.

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