public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/maskray/grte] Add a clang/lld workaround for symbol not being overridden
@ 2021-08-27 23:25 Fangrui Song
  0 siblings, 0 replies; only message in thread
From: Fangrui Song @ 2021-08-27 23:25 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=903b7aed7c0122c37f5c5fe93a20a92f5274b10a

commit 903b7aed7c0122c37f5c5fe93a20a92f5274b10a
Author: Stan Shebs <stanshebs@google.com>
Date:   Wed May 9 11:25:42 2018 -0700

    Add a clang/lld workaround for symbol not being overridden

Diff:
---
 elf/unload4mod4.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/elf/unload4mod4.c b/elf/unload4mod4.c
index ba5a144d38..bfff34fd57 100644
--- a/elf/unload4mod4.c
+++ b/elf/unload4mod4.c
@@ -3,6 +3,8 @@
 
 int
 __attribute__((noinline))
+/* Workaround for clang/lld failing to override this from a module.  */
+__attribute__((weak))
 baz (int x)
 {
   abort ();


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-27 23:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-27 23:25 [glibc/maskray/grte] Add a clang/lld workaround for symbol not being overridden Fangrui Song

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).