[Bug sanitizer/109674] [14 Regression] linking with libhwasan is now broken

2023-04-30 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109674

Martin Liška  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #7 from Martin Liška  ---
Fixed now. There are some hwasan test-suite failures that I'm going to fix
soon.

[Bug sanitizer/109674] [14 Regression] linking with libhwasan is now broken

2023-04-30 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109674

--- Comment #6 from CVS Commits  ---
The master branch has been updated by Martin Liska :

https://gcc.gnu.org/g:54765c875a0ec961e06d56d916d9ad1ddfc3b221

commit r14-359-g54765c875a0ec961e06d56d916d9ad1ddfc3b221
Author: Martin Liska 
Date:   Sun Apr 30 21:28:15 2023 +0200

libsanitizer: link hwasan against lsan library

Similarly to libasan.so, libhwasan.so also utilizes some
of the symbols from lsan library.

PR sanitizer/109674

libsanitizer/ChangeLog:

* hwasan/Makefile.am: Depend on liblsan.
* hwasan/Makefile.in: Re-generate.

[Bug sanitizer/109674] [14 Regression] linking with libhwasan is now broken

2023-04-30 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109674

--- Comment #5 from Martin Liška  ---
The solution is probably very similar to libasan library where also __lsan
symbols are used and where we link against ../lsan/.libs/libsanitizer_lsan.a.

[Bug sanitizer/109674] [14 Regression] linking with libhwasan is now broken

2023-04-30 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109674

Martin Liška  changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2023-04-30
   Assignee|unassigned at gcc dot gnu.org  |marxin at gcc dot 
gnu.org
 Ever confirmed|0   |1

--- Comment #4 from Martin Liška  ---
Oh, now I can reproduce it.

[Bug sanitizer/109674] [14 Regression] linking with libhwasan is now broken

2023-04-30 Thread schwab--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109674

--- Comment #3 from Andreas Schwab  ---
The __lsan symbols are defined in liblsan, but only as local symbols.

[Bug sanitizer/109674] [14 Regression] linking with libhwasan is now broken

2023-04-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109674

Andrew Pinski  changed:

   What|Removed |Added

 Resolution|INVALID |---
 Status|RESOLVED|UNCONFIRMED

--- Comment #2 from Andrew Pinski  ---
(In reply to Martin Liška from comment #1)
> I've just built libsanitizer on an aarch64 with revision
> g:2744dbb9ecf104a113da3a0f39115da4653bb676 and it's fine:
> 
> file libsanitizer/hwasan/.libs/libhwasan.so.0.0.0
> libsanitizer/hwasan/.libs/libhwasan.so.0.0.0: ELF 64-bit LSB shared object,
> ARM aarch64, version 1 (SYSV), dynamically linked, with debug_info, not
> stripped

The link failure was while running the testsuite and linking against libhwasan;
NOT while linking libhwasan.

[Bug sanitizer/109674] [14 Regression] linking with libhwasan is now broken

2023-04-30 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109674

Martin Liška  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |INVALID

--- Comment #1 from Martin Liška  ---
I've just built libsanitizer on an aarch64 with revision
g:2744dbb9ecf104a113da3a0f39115da4653bb676 and it's fine:

file libsanitizer/hwasan/.libs/libhwasan.so.0.0.0
libsanitizer/hwasan/.libs/libhwasan.so.0.0.0: ELF 64-bit LSB shared object, ARM
aarch64, version 1 (SYSV), dynamically linked, with debug_info, not stripped

[Bug sanitizer/109674] [14 Regression] linking with libhwasan is now broken

2023-04-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109674

Andrew Pinski  changed:

   What|Removed |Added

   Target Milestone|--- |14.0