[Bug binutils/26448] UBSAN error: gas/symbols.c:1586:31:

2020-08-25 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26448

Alan Modra  changed:

   What|Removed |Added

   Last reconfirmed||2020-08-26
 Status|UNCONFIRMED |ASSIGNED
 Ever confirmed|0   |1
   Assignee|unassigned at sourceware dot org   |amodra at gmail dot com

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


[Bug binutils/26431] UBSAN error: ld/pe-dll.c:568:7:

2020-08-25 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26431

Alan Modra  changed:

   What|Removed |Added

   Last reconfirmed||2020-08-26
 Status|UNCONFIRMED |ASSIGNED
 Ever confirmed|0   |1
   Assignee|unassigned at sourceware dot org   |amodra at gmail dot com

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


[Bug binutils/26418] UBSAN error: bfd/cache.c:386:12:

2020-08-25 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26418

Alan Modra  changed:

   What|Removed |Added

   Assignee|unassigned at sourceware dot org   |amodra at gmail dot com
 Status|UNCONFIRMED |ASSIGNED
 Ever confirmed|0   |1
   Last reconfirmed||2020-08-26

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


[Bug binutils/26415] UBSAN error: bfd/vms-misc.c:636:26:

2020-08-25 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26415

Alan Modra  changed:

   What|Removed |Added

   Last reconfirmed||2020-08-26
   Assignee|unassigned at sourceware dot org   |amodra at gmail dot com
 Ever confirmed|0   |1
 Status|UNCONFIRMED |ASSIGNED

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


[Bug binutils/26458] UBSAN error: bfd/elf32-i386.c:3615:21:

2020-08-25 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26458

Alan Modra  changed:

   What|Removed |Added

   Last reconfirmed||2020-08-26
 Ever confirmed|0   |1
 Status|UNCONFIRMED |ASSIGNED
   Assignee|unassigned at sourceware dot org   |amodra at gmail dot com

--- Comment #1 from Alan Modra  ---
This one shows up in powerpc-wrs-vxworks too.

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


[Bug binutils/26424] UBSAN error: bfd/elf32-arm.c:10755:30:

2020-08-25 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26424

Alan Modra  changed:

   What|Removed |Added

 Resolution|--- |FIXED
   Assignee|unassigned at sourceware dot org   |amodra at gmail dot com
 Status|UNCONFIRMED |RESOLVED

--- Comment #1 from Alan Modra  ---
Fixed with git commit d2327e47ef26

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


[Bug binutils/26412] UBSAN error: objcopy.c:3026:12:

2020-08-25 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26412

Alan Modra  changed:

   What|Removed |Added

   Assignee|unassigned at sourceware dot org   |amodra at gmail dot com
 Status|UNCONFIRMED |ASSIGNED
 Ever confirmed|0   |1
   Last reconfirmed||2020-08-26

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


[Bug binutils/26485] UBSAN error: bfd/elf64-ppc.c:16582:18:

2020-08-25 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26485

Alan Modra  changed:

   What|Removed |Added

   Assignee|unassigned at sourceware dot org   |amodra at gmail dot com
   Last reconfirmed||2020-08-26
 Ever confirmed|0   |1
 Status|UNCONFIRMED |ASSIGNED

--- Comment #1 from Alan Modra  ---
I don't see this fail.  Code at line 16582 on master is
  : (h != NULL
 ? h->elf.dyn_relocs != NULL
 : ELF_ST_TYPE (sym->st_info) == STT_GNU_IFUNC))
Compiler bug?  I'm assuming all these ubsan bug reports were actually against
master not the 2.34 branch as marked..

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


[Bug ld/26530] Inconsistency in between bfd and gold about -Wl,--as-needed

2020-08-25 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26530

H.J. Lu  changed:

   What|Removed |Added

   Assignee|unassigned at sourceware dot org   |hjl.tools at gmail dot 
com
   Target Milestone|--- |2.36

--- Comment #3 from H.J. Lu  ---
A patch is posted at

https://sourceware.org/pipermail/binutils/2020-August/112996.html

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


[Bug binutils/26340] windres: AUTOCHECKBOX default style must have WS_TABSTOP style

2020-08-25 Thread katayama.hirofumi.mz at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26340

--- Comment #9 from katayama.hirofumi.mz at gmail dot com ---
Created attachment 12795
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12795=edit
The patch

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


[Bug binutils/26505] ASAN error: in xstormy16_elf_relax_section bfd/elf32-xstormy16.c:595

2020-08-25 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26505

Alan Modra  changed:

   What|Removed |Added

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

--- Comment #2 from Alan Modra  ---
Fixed

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


[Bug binutils/26504] ASAN error: in parse_disassembler_options opcodes/vax-dis.c:142

2020-08-25 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26504

Alan Modra  changed:

   What|Removed |Added

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

--- Comment #2 from Alan Modra  ---
Fixed

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


[Bug binutils/26501] ASAN error: in tic54x_undefined_symbol gas/config/tc-tic54x.c:5032

2020-08-25 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26501

Alan Modra  changed:

   What|Removed |Added

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

--- Comment #1 from Alan Modra  ---
Fixed with git commit 69ff2100fdf663

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


[Bug binutils/26500] ASAN error: in tic4x_inst_make gas/config/tc-tic4x.c:1254

2020-08-25 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26500

Alan Modra  changed:

   What|Removed |Added

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

--- Comment #2 from Alan Modra  ---
Fixed

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


[Bug binutils/26482] ASAN error: in _bfd_xcoff_sizeof_headers bfd/coff-rs6000.c:2585

2020-08-25 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26482

Alan Modra  changed:

   What|Removed |Added

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

--- Comment #2 from Alan Modra  ---
Fixed

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


[Bug binutils/26463] ASAN error: in m32c_elf_relax_section bfd/elf32-m32c.c:1448

2020-08-25 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26463

Alan Modra  changed:

   What|Removed |Added

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

--- Comment #2 from Alan Modra  ---
Fixed

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


[Bug binutils/26452] ASAN error: in som_compute_checksum bfd/som.c:4293

2020-08-25 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26452

Alan Modra  changed:

   What|Removed |Added

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

--- Comment #2 from Alan Modra  ---
Fixed

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


[Bug binutils/26441] ASAN error: in get_b_cc gas/config/tc-cr16.c:1533

2020-08-25 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26441

Alan Modra  changed:

   What|Removed |Added

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

--- Comment #2 from Alan Modra  ---
Fixed.

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


[Bug binutils/26430] ASAN error: in memcpy (/usr/lib64/libasan.so.6+0x3c63f)

2020-08-25 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26430

Alan Modra  changed:

   What|Removed |Added

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

--- Comment #2 from Alan Modra  ---
Fixed

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


[Bug binutils/26422] ASAN: elf32_arm_final_link_relocate elf32-arm.c:10350

2020-08-25 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26422

Alan Modra  changed:

   What|Removed |Added

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

--- Comment #3 from Alan Modra  ---
Fixed

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


[Bug binutils/26426] ASAN error: in neon_quad gas/config/tc-arm.c:15178

2020-08-25 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26426

Alan Modra  changed:

   What|Removed |Added

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

--- Comment #2 from Alan Modra  ---
Fixed

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


[Bug binutils/26419] ASAN error: in mn10300_elf_relax_section bfd/elf-m10300.c:3942

2020-08-25 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26419

Alan Modra  changed:

   What|Removed |Added

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

--- Comment #2 from Alan Modra  ---
Fixed

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


[Bug gas/26410] UBSAN error: gas/symbols.c:1818:3:

2020-08-25 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26410

Alan Modra  changed:

   What|Removed |Added

   Target Milestone|--- |2.36
 Status|ASSIGNED|RESOLVED
Version|2.34|2.35
 Resolution|--- |FIXED

--- Comment #2 from Alan Modra  ---
Fixed

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


[Bug binutils/26430] ASAN error: in memcpy (/usr/lib64/libasan.so.6+0x3c63f)

2020-08-25 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=26430

--- 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=0c1438eb15a31098ba42427e0f48e4e5cc6bfe0b

commit 0c1438eb15a31098ba42427e0f48e4e5cc6bfe0b
Author: Alan Modra 
Date:   Tue Aug 25 14:47:50 2020 +0930

PR26430, ASAN: nacl_modify_segment_map elf-nacl.c:164

PR 26430
* elf-nacl.c (nacl_modify_segment_map): Correct alloc size and
amount copied for elf_segment_map defined with one element
sections array.

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


[Bug binutils/26422] ASAN: elf32_arm_final_link_relocate elf32-arm.c:10350

2020-08-25 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=26422

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

commit d2327e47ef26dc88192e07b53cbad0b768cecf2e
Author: Alan Modra 
Date:   Tue Aug 25 14:05:10 2020 +0930

PR26422, ASAN: elf32_arm_final_link_relocate elf32-arm.c:10351

Always reading 32 bits in order to extract addends from instruction
fields is wrong when the field size is smaller.  It also leads to
reading past the end of the section.  This patch tidies that by
reading the proper field size, which allows some later refetching of
addends to disappear.

PR 26422
* elf32-arm.c (elf32_arm_final_link_relocate): Use the appropriate
bfd_get_x size function to read addends out of fields.  Apply
rightshift adjustment too.  Don't apply the now unnecessary
howto->size shift to branch REL addends.  Don't refetch R_ARM_ABS8
and R_ARM_ABS16 addends.  Don't refetch thumb branch addends.
Correct R_ARM_THM_JUMP6 addend.

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


[Bug binutils/26505] ASAN error: in xstormy16_elf_relax_section bfd/elf32-xstormy16.c:595

2020-08-25 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=26505

--- 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=1ab8d928977f4d9f137f972d03e079555d0f29fa

commit 1ab8d928977f4d9f137f972d03e079555d0f29fa
Author: Alan Modra 
Date:   Tue Aug 25 17:56:08 2020 +0930

PR26505, ASAN: xstormy16_elf_relax_section elf32-xstormy16.c:595

PR 26505
* elf32-xstormy16.c (xstormy16_elf_relax_section): Check
is_elf_hash_table before accessing elf fields.

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


[Bug binutils/26500] ASAN error: in tic4x_inst_make gas/config/tc-tic4x.c:1254

2020-08-25 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=26500

--- 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=1de153a16817c8b2807749911c39ed96a0698b88

commit 1de153a16817c8b2807749911c39ed96a0698b88
Author: Alan Modra 
Date:   Tue Aug 25 16:56:07 2020 +0930

PR26500, ASAN: tic4x_inst_make tc-tic4x.c:1247

PR 26500
* tc-tic4x.c (tic4x_inst_make): Don't die on terminating insn
with name = "".

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


[Bug binutils/26426] ASAN error: in neon_quad gas/config/tc-arm.c:15178

2020-08-25 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=26426

--- 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=250dd99fc92bac670691b66363dd71dccb22b10d

commit 250dd99fc92bac670691b66363dd71dccb22b10d
Author: Alan Modra 
Date:   Tue Aug 25 14:12:49 2020 +0930

PR26426, ASAN: neon_quad tc-arm.c:15175

PR 26426
* config/tc-arm.c (do_neon_mvn, do_neon_swp): Bail out on
NS_NULL shape.

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


[Bug binutils/26482] ASAN error: in _bfd_xcoff_sizeof_headers bfd/coff-rs6000.c:2585

2020-08-25 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=26482

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

commit a93ba4c0cf1d6ffa46b493643460730265455e4c
Author: Alan Modra 
Date:   Tue Aug 25 16:15:27 2020 +0930

PR26482, ASAN: _bfd_xcoff_sizeof_headers coff-rs6000.c:2585

PR 26482
* coff-rs6000.c (_bfd_xcoff_sizeof_headers): Ignore sections that
won't be output.

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


[Bug binutils/26452] ASAN error: in som_compute_checksum bfd/som.c:4293

2020-08-25 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=26452

--- 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=2186273ac4ba9fa4c56dc8c5d47ab3a7e358cec9

commit 2186273ac4ba9fa4c56dc8c5d47ab3a7e358cec9
Author: Alan Modra 
Date:   Tue Aug 25 15:46:02 2020 +0930

PR26452, ASAN: som_compute_checksum som.c:4293

PR 26452
* som.c (som_compute_checksum): XOR 32-bit words in header,
not unsigned long sized words.

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


[Bug binutils/26504] ASAN error: in parse_disassembler_options opcodes/vax-dis.c:142

2020-08-25 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=26504

--- 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=8640c87dcd4528e19dc060bfac801f9084fbf4e2

commit 8640c87dcd4528e19dc060bfac801f9084fbf4e2
Author: Alan Modra 
Date:   Tue Aug 25 17:46:59 2020 +0930

PR26504, ASAN: parse_disassembler_options vax-dis.c:142

PR 26504
* vax-dis.c (parse_disassembler_options): Always add at least one
to entry_addr_total_slots.

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


[Bug binutils/26463] ASAN error: in m32c_elf_relax_section bfd/elf32-m32c.c:1448

2020-08-25 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=26463

--- 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=1438dd86cc7b1048a8d1b37754d51d9153123064

commit 1438dd86cc7b1048a8d1b37754d51d9153123064
Author: Alan Modra 
Date:   Tue Aug 25 18:23:38 2020 +0930

PR26463, ASAN: m32c_elf_relax_section elf32-m32c.c:1448

PR 26463
* elf32-m32c.c (m32c_elf_relax_section): Check is_elf_hash_table
before accessing elf fields.

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


[Bug binutils/26441] ASAN error: in get_b_cc gas/config/tc-cr16.c:1533

2020-08-25 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=26441

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

commit d3e0baddb206bc7c5ad5beb0c4ac3db8a5feb889
Author: Alan Modra 
Date:   Tue Aug 25 15:34:10 2020 +0930

PR26441, ASAN: get_b_cc tc-cr16.c:1521

PR 26441
* config/tc-cr16.c (get_b_cc): Return NULL early if op isn't
two or three chars, and don't bother copying.

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


[Bug binutils/26419] ASAN error: in mn10300_elf_relax_section bfd/elf-m10300.c:3942

2020-08-25 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=26419

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

commit b8ff233b54d66c5dce5a6d1409fe57e7ea359f43
Author: Alan Modra 
Date:   Tue Aug 25 09:37:23 2020 +0930

PR26419, ASAN: mn10300_elf_relax_section elf-m10300.c:3943

PR 26419
* elf-m10300.c (mn10300_elf_relax_section): Don't attempt access
before start of section.

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


[Bug gas/26410] UBSAN error: gas/symbols.c:1818:3:

2020-08-25 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=26410

--- 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=30b940a097d48c73013bea38a36c5f8e3c3b2358

commit 30b940a097d48c73013bea38a36c5f8e3c3b2358
Author: Alan Modra 
Date:   Tue Aug 25 14:51:21 2020 +0930

PR26410, UBSAN: symbols.c:1818

Don't memset(0,0,0).

PR 26410
* symbols.c (dollar_label_count, dollar_label_max): Make size_t.
(dollar_label_clear): Don't call memset with NULL pointer.

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


[Bug ld/26530] Inconsistency in between bfd and gold about -Wl,--as-needed

2020-08-25 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26530

H.J. Lu  changed:

   What|Removed |Added

 Ever confirmed|0   |1
   Last reconfirmed||2020-08-25
 Status|UNCONFIRMED |NEW

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


[Bug ld/26530] Inconsistency in between bfd and gold about -Wl,--as-needed

2020-08-25 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26530

--- Comment #2 from H.J. Lu  ---
Created attachment 12794
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12794=edit
A testcase

$ make
gcc -B./ -O2 -g -flto -c -o pr26530c.o pr26530c.c
gcc -B./ -O2 -g -fPIC -c -o pr26530a.o pr26530a.c
gcc -B./ -shared -o libpr26530.so pr26530a.o
gcc -B./ -O2 -g -c -o pr26530b.o pr26530b.c
ar rc -o libpr26530.a pr26530b.o
gcc -B./ -Wl,--as-needed -o x pr26530c.o libpr26530.so libpr26530.a -Wl,-R,.
./x
make: *** [Makefile:14: all] Aborted (core dumped)

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


[Bug ld/26530] Inconsistency in between bfd and gold about -Wl,--as-needed

2020-08-25 Thread matz at suse dot de
https://sourceware.org/bugzilla/show_bug.cgi?id=26530

--- Comment #1 from Michael Matz  ---
FWIW, I think the gold behaviour is the correct one.  The order of libraries
on the cmdline is significant, and libfoo.so does fulfill the symbol request,
so the object from libtest.a shouldn't be considered.  No matter if LTO is or
isn't
involved.  (In fact also bfd ld doesn't use the archive without LTO mode)

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


[Bug gas/26410] UBSAN error: gas/symbols.c:1818:3:

2020-08-25 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26410

Alan Modra  changed:

   What|Removed |Added

 Ever confirmed|0   |1
   Last reconfirmed||2020-08-25
 Status|UNCONFIRMED |ASSIGNED
   Assignee|unassigned at sourceware dot org   |amodra at gmail dot com

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


[Bug binutils/26465] ASAN error: in bfd_elf_m68k_set_target_options bfd/elf32-m68k.c:4519

2020-08-25 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26465

Alan Modra  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
   Assignee|unassigned at sourceware dot org   |amodra at gmail dot com
 Resolution|--- |FIXED

--- Comment #1 from Alan Modra  ---
This was fixed with git commit 0f55320bc468.

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


[Bug binutils/26463] ASAN error: in m32c_elf_relax_section bfd/elf32-m32c.c:1448

2020-08-25 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26463

Alan Modra  changed:

   What|Removed |Added

 Ever confirmed|0   |1
   Assignee|unassigned at sourceware dot org   |amodra at gmail dot com
   Last reconfirmed||2020-08-25
 Status|UNCONFIRMED |ASSIGNED

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


[Bug binutils/26505] ASAN error: in xstormy16_elf_relax_section bfd/elf32-xstormy16.c:595

2020-08-25 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26505

Alan Modra  changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Assignee|unassigned at sourceware dot org   |amodra at gmail dot com
   Last reconfirmed||2020-08-25
 Ever confirmed|0   |1

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


[Bug binutils/26504] ASAN error: in parse_disassembler_options opcodes/vax-dis.c:142

2020-08-25 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26504

Alan Modra  changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Assignee|unassigned at sourceware dot org   |amodra at gmail dot com
   Last reconfirmed||2020-08-25
 Ever confirmed|0   |1

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


[Bug binutils/26501] ASAN error: in tic54x_undefined_symbol gas/config/tc-tic54x.c:5032

2020-08-25 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26501

Alan Modra  changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Assignee|unassigned at sourceware dot org   |amodra at gmail dot com
   Last reconfirmed||2020-08-25
 Ever confirmed|0   |1

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


[Bug binutils/26500] ASAN error: in tic4x_inst_make gas/config/tc-tic4x.c:1254

2020-08-25 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26500

Alan Modra  changed:

   What|Removed |Added

   Last reconfirmed||2020-08-25
 Ever confirmed|0   |1
 Status|UNCONFIRMED |ASSIGNED
   Assignee|unassigned at sourceware dot org   |amodra at gmail dot com

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


[Bug ld/26530] Inconsistency in between bfd and gold about -Wl,--as-needed

2020-08-25 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26530

Martin Liska  changed:

   What|Removed |Added

 CC||hjl.tools at gmail dot com,
   ||matz at suse dot de

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


[Bug ld/26530] New: Inconsistency in between bfd and gold about -Wl,--as-needed

2020-08-25 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26530

Bug ID: 26530
   Summary: Inconsistency in between bfd and gold about
-Wl,--as-needed
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: ld
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

Let's consider the following example:

$ cat foo.c
const char *lrealpath(const char *a)
{
  return a;
}

$ cat main.c
const char *lrealpath(const char *a);

int main(int argc, char **argv)
{
  lrealpath (argv[0]);
}

$ gcc foo.c -fPIC -flto -c
$ ar r libtest.a foo.o
$ gcc -o libfoo.so foo.o -shared

$ gcc main.o -Wl,--as-needed libfoo.so libtest.a --save-temps -fuse-ld=bfd -L.
&& cat libtest.res
2
main.o 2
200 6e870bd31e7efa23 PREVAILING_DEF main
206 6e870bd31e7efa23 RESOLVED_IR lrealpath
libtest.a@0x92 1
199 76b392265247fa61 PREVAILING_DEF_IRONLY_EXP lrealpath

while gold does:

$ gcc main.o -Wl,--as-needed libfoo.so libtest.a --save-temps -fuse-ld=gold -L.
&& cat libtest.res
1
main.o 2
200 6e870bd31e7efa23 PREVAILING_DEF main
206 6e870bd31e7efa23 RESOLVED_DYN lrealpath

So BFD takes symbols from LTO IR while GOLD takes them from the shared library.

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


[Bug ld/26518] [2.35|regression|bisected] DWARF error: could not find variable specification

2020-08-25 Thread xantares09 at hotmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26518

--- Comment #7 from xantares09 at hotmail dot com ---
I dont know. Maybe windows binary format dont support multiple definitions ?

I thought the most important part was:

ld: DWARF error: could not find variable specification at offset 377

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


[Bug binutils/26496] ASAN error: in sh_elf_relocate_section bfd/elf32-sh.c:3405

2020-08-25 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26496

Alan Modra  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
   Assignee|unassigned at sourceware dot org   |amodra at gmail dot com
 Resolution|--- |FIXED

--- Comment #1 from Alan Modra  ---
This was fixed with git commit 0f55320bc468.

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


[Bug binutils/26494] ASAN error: in bfd_elf_s390_set_options bfd/elf64-s390.c:3802

2020-08-25 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26494

Alan Modra  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|UNCONFIRMED |RESOLVED
   Assignee|unassigned at sourceware dot org   |amodra at gmail dot com

--- Comment #1 from Alan Modra  ---
This was fixed with git commit 0f55320bc468.

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


[Bug binutils/26482] ASAN error: in _bfd_xcoff_sizeof_headers bfd/coff-rs6000.c:2585

2020-08-25 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26482

Alan Modra  changed:

   What|Removed |Added

   Assignee|unassigned at sourceware dot org   |amodra at gmail dot com
 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2020-08-25
 Ever confirmed|0   |1

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


[Bug binutils/26452] ASAN error: in som_compute_checksum bfd/som.c:4293

2020-08-25 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26452

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||2020-08-25

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


[Bug binutils/26441] ASAN error: in get_b_cc gas/config/tc-cr16.c:1533

2020-08-25 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26441

Alan Modra  changed:

   What|Removed |Added

   Assignee|unassigned at sourceware dot org   |amodra at gmail dot com
 Ever confirmed|0   |1
   Last reconfirmed||2020-08-25
 Status|UNCONFIRMED |ASSIGNED

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