[Bug ld/26163] Combination of LTO and -Wl,--defsym causes symbol to be resolved as NULL

2020-06-24 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=26163

--- 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=5376d47f66d0e4e07b3d42cb62ad07327cad4292

commit 5376d47f66d0e4e07b3d42cb62ad07327cad4292
Author: H.J. Lu 
Date:   Wed Jun 24 03:56:05 2020 -0700

ld: Set non_ir_ref_regular on source for assignment

We need to set non_ir_ref_regular on the source for assignment to get
the correct LTO resolution:

190 a27be7f4ad90c5ce PREVAILING_DEF real_g

instead of

190 30c3b2d8f967f5ea PREVAILING_DEF_IRONLY real_g

PR ld/26163
* ldexp.c (exp_fold_tree_1): Set non_ir_ref_regular on the source
for assignment.
* testsuite/ld-plugin/lto.exp: Run ld/26163 test.
* testsuite/ld-plugin/pr26163a.c: New file.
* testsuite/ld-plugin/pr26163b.c: Likewise.

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


[Bug ld/26163] Combination of LTO and -Wl,--defsym causes symbol to be resolved as NULL

2020-06-24 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26163

H.J. Lu  changed:

   What|Removed |Added

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

--- Comment #3 from H.J. Lu  ---
Fixed for 2.35.

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


[Bug ld/26163] Combination of LTO and -Wl,--defsym causes symbol to be resolved as NULL

2020-06-23 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26163

H.J. Lu  changed:

   What|Removed |Added

URL||https://sourceware.org/pipe
   ||rmail/binutils/2020-June/11
   ||1841.html
   Target Milestone|--- |2.35

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

https://sourceware.org/pipermail/binutils/2020-June/111841.html

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