public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/azanella/clang] Fix inhibit_stack_protector for clang
@ 2022-10-04 12:57 Adhemerval Zanella
0 siblings, 0 replies; 17+ messages in thread
From: Adhemerval Zanella @ 2022-10-04 12:57 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=7373a986fbb2066a5b17cd98fa3d2f49a33cde5c
commit 7373a986fbb2066a5b17cd98fa3d2f49a33cde5c
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Wed Mar 9 17:43:42 2022 -0300
Fix inhibit_stack_protector for clang
Diff:
---
include/libc-symbols.h | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/include/libc-symbols.h b/include/libc-symbols.h
index 033a433778..e01cc82879 100644
--- a/include/libc-symbols.h
+++ b/include/libc-symbols.h
@@ -432,8 +432,13 @@ for linking")
/* Used to disable stack protection in sensitive places, like ifunc
resolvers and early static TLS init. */
#ifdef HAVE_CC_NO_STACK_PROTECTOR
-# define inhibit_stack_protector \
+# ifdef __clang__
+# define inhibit_stack_protector \
+ __attribute__((no_stack_protector))
+# else
+# define inhibit_stack_protector \
__attribute__ ((__optimize__ ("-fno-stack-protector")))
+# endif
#else
# define inhibit_stack_protector
#endif
^ permalink raw reply [flat|nested] 17+ messages in thread
* [glibc/azanella/clang] Fix inhibit_stack_protector for clang
@ 2023-02-09 19:46 Adhemerval Zanella
0 siblings, 0 replies; 17+ messages in thread
From: Adhemerval Zanella @ 2023-02-09 19:46 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=085824a254e0caf2b7e38747497a935f2c58adb8
commit 085824a254e0caf2b7e38747497a935f2c58adb8
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Wed Mar 9 17:43:42 2022 -0300
Fix inhibit_stack_protector for clang
Diff:
---
include/libc-symbols.h | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/include/libc-symbols.h b/include/libc-symbols.h
index 37c91bb3a4..41c5022e04 100644
--- a/include/libc-symbols.h
+++ b/include/libc-symbols.h
@@ -365,8 +365,13 @@ for linking")
/* Used to disable stack protection in sensitive places, like ifunc
resolvers and early static TLS init. */
#ifdef HAVE_CC_NO_STACK_PROTECTOR
-# define inhibit_stack_protector \
+# ifdef __clang__
+# define inhibit_stack_protector \
+ __attribute__((no_stack_protector))
+# else
+# define inhibit_stack_protector \
__attribute__ ((__optimize__ ("-fno-stack-protector")))
+# endif
#else
# define inhibit_stack_protector
#endif
^ permalink raw reply [flat|nested] 17+ messages in thread
* [glibc/azanella/clang] Fix inhibit_stack_protector for clang
@ 2022-10-28 17:39 Adhemerval Zanella
0 siblings, 0 replies; 17+ messages in thread
From: Adhemerval Zanella @ 2022-10-28 17:39 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=8e54961dc28bb0c9a45623646767ae45ba503543
commit 8e54961dc28bb0c9a45623646767ae45ba503543
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Wed Mar 9 17:43:42 2022 -0300
Fix inhibit_stack_protector for clang
Diff:
---
include/libc-symbols.h | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/include/libc-symbols.h b/include/libc-symbols.h
index f4437ff6ad..140ee0ff6d 100644
--- a/include/libc-symbols.h
+++ b/include/libc-symbols.h
@@ -432,8 +432,13 @@ for linking")
/* Used to disable stack protection in sensitive places, like ifunc
resolvers and early static TLS init. */
#ifdef HAVE_CC_NO_STACK_PROTECTOR
-# define inhibit_stack_protector \
+# ifdef __clang__
+# define inhibit_stack_protector \
+ __attribute__((no_stack_protector))
+# else
+# define inhibit_stack_protector \
__attribute__ ((__optimize__ ("-fno-stack-protector")))
+# endif
#else
# define inhibit_stack_protector
#endif
^ permalink raw reply [flat|nested] 17+ messages in thread
* [glibc/azanella/clang] Fix inhibit_stack_protector for clang
@ 2022-06-09 21:18 Adhemerval Zanella
0 siblings, 0 replies; 17+ messages in thread
From: Adhemerval Zanella @ 2022-06-09 21:18 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=9d539bc683408c112dba0be180e43a74a612a851
commit 9d539bc683408c112dba0be180e43a74a612a851
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Wed Mar 9 17:43:42 2022 -0300
Fix inhibit_stack_protector for clang
Diff:
---
include/libc-symbols.h | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/include/libc-symbols.h b/include/libc-symbols.h
index ac9a302cb6..245e7c2c0b 100644
--- a/include/libc-symbols.h
+++ b/include/libc-symbols.h
@@ -448,8 +448,13 @@ for linking")
/* Used to disable stack protection in sensitive places, like ifunc
resolvers and early static TLS init. */
#ifdef HAVE_CC_NO_STACK_PROTECTOR
-# define inhibit_stack_protector \
+# ifdef __clang__
+# define inhibit_stack_protector \
+ __attribute__((no_stack_protector))
+# else
+# define inhibit_stack_protector \
__attribute__ ((__optimize__ ("-fno-stack-protector")))
+# endif
#else
# define inhibit_stack_protector
#endif
^ permalink raw reply [flat|nested] 17+ messages in thread
* [glibc/azanella/clang] Fix inhibit_stack_protector for clang
@ 2022-06-09 13:14 Adhemerval Zanella
0 siblings, 0 replies; 17+ messages in thread
From: Adhemerval Zanella @ 2022-06-09 13:14 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=9d539bc683408c112dba0be180e43a74a612a851
commit 9d539bc683408c112dba0be180e43a74a612a851
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Wed Mar 9 17:43:42 2022 -0300
Fix inhibit_stack_protector for clang
Diff:
---
include/libc-symbols.h | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/include/libc-symbols.h b/include/libc-symbols.h
index ac9a302cb6..245e7c2c0b 100644
--- a/include/libc-symbols.h
+++ b/include/libc-symbols.h
@@ -448,8 +448,13 @@ for linking")
/* Used to disable stack protection in sensitive places, like ifunc
resolvers and early static TLS init. */
#ifdef HAVE_CC_NO_STACK_PROTECTOR
-# define inhibit_stack_protector \
+# ifdef __clang__
+# define inhibit_stack_protector \
+ __attribute__((no_stack_protector))
+# else
+# define inhibit_stack_protector \
__attribute__ ((__optimize__ ("-fno-stack-protector")))
+# endif
#else
# define inhibit_stack_protector
#endif
^ permalink raw reply [flat|nested] 17+ messages in thread
* [glibc/azanella/clang] Fix inhibit_stack_protector for clang
@ 2022-06-03 14:04 Adhemerval Zanella
0 siblings, 0 replies; 17+ messages in thread
From: Adhemerval Zanella @ 2022-06-03 14:04 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=62c283b6e46fb9b50f639d449ccbbcd5ff9ac460
commit 62c283b6e46fb9b50f639d449ccbbcd5ff9ac460
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Wed Mar 9 17:43:42 2022 -0300
Fix inhibit_stack_protector for clang
Diff:
---
include/libc-symbols.h | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/include/libc-symbols.h b/include/libc-symbols.h
index ac9a302cb6..245e7c2c0b 100644
--- a/include/libc-symbols.h
+++ b/include/libc-symbols.h
@@ -448,8 +448,13 @@ for linking")
/* Used to disable stack protection in sensitive places, like ifunc
resolvers and early static TLS init. */
#ifdef HAVE_CC_NO_STACK_PROTECTOR
-# define inhibit_stack_protector \
+# ifdef __clang__
+# define inhibit_stack_protector \
+ __attribute__((no_stack_protector))
+# else
+# define inhibit_stack_protector \
__attribute__ ((__optimize__ ("-fno-stack-protector")))
+# endif
#else
# define inhibit_stack_protector
#endif
^ permalink raw reply [flat|nested] 17+ messages in thread
* [glibc/azanella/clang] Fix inhibit_stack_protector for clang
@ 2022-05-13 14:18 Adhemerval Zanella
0 siblings, 0 replies; 17+ messages in thread
From: Adhemerval Zanella @ 2022-05-13 14:18 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=0d8a94230280ee1d3de1ab81f5d871812f1cfdc5
commit 0d8a94230280ee1d3de1ab81f5d871812f1cfdc5
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Wed Mar 9 17:43:42 2022 -0300
Fix inhibit_stack_protector for clang
Diff:
---
include/libc-symbols.h | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/include/libc-symbols.h b/include/libc-symbols.h
index ac9a302cb6..245e7c2c0b 100644
--- a/include/libc-symbols.h
+++ b/include/libc-symbols.h
@@ -448,8 +448,13 @@ for linking")
/* Used to disable stack protection in sensitive places, like ifunc
resolvers and early static TLS init. */
#ifdef HAVE_CC_NO_STACK_PROTECTOR
-# define inhibit_stack_protector \
+# ifdef __clang__
+# define inhibit_stack_protector \
+ __attribute__((no_stack_protector))
+# else
+# define inhibit_stack_protector \
__attribute__ ((__optimize__ ("-fno-stack-protector")))
+# endif
#else
# define inhibit_stack_protector
#endif
^ permalink raw reply [flat|nested] 17+ messages in thread
* [glibc/azanella/clang] Fix inhibit_stack_protector for clang
@ 2022-05-12 19:31 Adhemerval Zanella
0 siblings, 0 replies; 17+ messages in thread
From: Adhemerval Zanella @ 2022-05-12 19:31 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=fa488aff71ff59da9553ac15d2178ef4d09e97ff
commit fa488aff71ff59da9553ac15d2178ef4d09e97ff
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Wed Mar 9 17:43:42 2022 -0300
Fix inhibit_stack_protector for clang
Diff:
---
include/libc-symbols.h | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/include/libc-symbols.h b/include/libc-symbols.h
index ac9a302cb6..245e7c2c0b 100644
--- a/include/libc-symbols.h
+++ b/include/libc-symbols.h
@@ -448,8 +448,13 @@ for linking")
/* Used to disable stack protection in sensitive places, like ifunc
resolvers and early static TLS init. */
#ifdef HAVE_CC_NO_STACK_PROTECTOR
-# define inhibit_stack_protector \
+# ifdef __clang__
+# define inhibit_stack_protector \
+ __attribute__((no_stack_protector))
+# else
+# define inhibit_stack_protector \
__attribute__ ((__optimize__ ("-fno-stack-protector")))
+# endif
#else
# define inhibit_stack_protector
#endif
^ permalink raw reply [flat|nested] 17+ messages in thread
* [glibc/azanella/clang] Fix inhibit_stack_protector for clang
@ 2022-05-10 18:22 Adhemerval Zanella
0 siblings, 0 replies; 17+ messages in thread
From: Adhemerval Zanella @ 2022-05-10 18:22 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=9ad65950578d6e902f396e17df42a04cb2ff5204
commit 9ad65950578d6e902f396e17df42a04cb2ff5204
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Wed Mar 9 17:43:42 2022 -0300
Fix inhibit_stack_protector for clang
Diff:
---
include/libc-symbols.h | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/include/libc-symbols.h b/include/libc-symbols.h
index ac9a302cb6..245e7c2c0b 100644
--- a/include/libc-symbols.h
+++ b/include/libc-symbols.h
@@ -448,8 +448,13 @@ for linking")
/* Used to disable stack protection in sensitive places, like ifunc
resolvers and early static TLS init. */
#ifdef HAVE_CC_NO_STACK_PROTECTOR
-# define inhibit_stack_protector \
+# ifdef __clang__
+# define inhibit_stack_protector \
+ __attribute__((no_stack_protector))
+# else
+# define inhibit_stack_protector \
__attribute__ ((__optimize__ ("-fno-stack-protector")))
+# endif
#else
# define inhibit_stack_protector
#endif
^ permalink raw reply [flat|nested] 17+ messages in thread
* [glibc/azanella/clang] Fix inhibit_stack_protector for clang
@ 2022-04-29 14:02 Adhemerval Zanella
0 siblings, 0 replies; 17+ messages in thread
From: Adhemerval Zanella @ 2022-04-29 14:02 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=a196d658f1e181b6b4421b7e00e1218f5705d3aa
commit a196d658f1e181b6b4421b7e00e1218f5705d3aa
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Wed Mar 9 17:43:42 2022 -0300
Fix inhibit_stack_protector for clang
Diff:
---
include/libc-symbols.h | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/include/libc-symbols.h b/include/libc-symbols.h
index ac9a302cb6..245e7c2c0b 100644
--- a/include/libc-symbols.h
+++ b/include/libc-symbols.h
@@ -448,8 +448,13 @@ for linking")
/* Used to disable stack protection in sensitive places, like ifunc
resolvers and early static TLS init. */
#ifdef HAVE_CC_NO_STACK_PROTECTOR
-# define inhibit_stack_protector \
+# ifdef __clang__
+# define inhibit_stack_protector \
+ __attribute__((no_stack_protector))
+# else
+# define inhibit_stack_protector \
__attribute__ ((__optimize__ ("-fno-stack-protector")))
+# endif
#else
# define inhibit_stack_protector
#endif
^ permalink raw reply [flat|nested] 17+ messages in thread
* [glibc/azanella/clang] Fix inhibit_stack_protector for clang
@ 2022-04-04 12:52 Adhemerval Zanella
0 siblings, 0 replies; 17+ messages in thread
From: Adhemerval Zanella @ 2022-04-04 12:52 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=b16bcadae6af22de581b336f7286ab9ff62faa32
commit b16bcadae6af22de581b336f7286ab9ff62faa32
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Wed Mar 9 17:43:42 2022 -0300
Fix inhibit_stack_protector for clang
Diff:
---
include/libc-symbols.h | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/include/libc-symbols.h b/include/libc-symbols.h
index f4c1312ba5..4a55a8f7f9 100644
--- a/include/libc-symbols.h
+++ b/include/libc-symbols.h
@@ -446,8 +446,13 @@ for linking")
/* Used to disable stack protection in sensitive places, like ifunc
resolvers and early static TLS init. */
#ifdef HAVE_CC_NO_STACK_PROTECTOR
-# define inhibit_stack_protector \
+# ifdef __clang__
+# define inhibit_stack_protector \
+ __attribute__((no_stack_protector))
+# else
+# define inhibit_stack_protector \
__attribute__ ((__optimize__ ("-fno-stack-protector")))
+# endif
#else
# define inhibit_stack_protector
#endif
^ permalink raw reply [flat|nested] 17+ messages in thread
* [glibc/azanella/clang] Fix inhibit_stack_protector for clang
@ 2022-03-31 19:04 Adhemerval Zanella
0 siblings, 0 replies; 17+ messages in thread
From: Adhemerval Zanella @ 2022-03-31 19:04 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=cb4d0761729417b7a0e699c3e1e944884a99c236
commit cb4d0761729417b7a0e699c3e1e944884a99c236
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Wed Mar 9 17:43:42 2022 -0300
Fix inhibit_stack_protector for clang
Diff:
---
include/libc-symbols.h | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/include/libc-symbols.h b/include/libc-symbols.h
index f4c1312ba5..4a55a8f7f9 100644
--- a/include/libc-symbols.h
+++ b/include/libc-symbols.h
@@ -446,8 +446,13 @@ for linking")
/* Used to disable stack protection in sensitive places, like ifunc
resolvers and early static TLS init. */
#ifdef HAVE_CC_NO_STACK_PROTECTOR
-# define inhibit_stack_protector \
+# ifdef __clang__
+# define inhibit_stack_protector \
+ __attribute__((no_stack_protector))
+# else
+# define inhibit_stack_protector \
__attribute__ ((__optimize__ ("-fno-stack-protector")))
+# endif
#else
# define inhibit_stack_protector
#endif
^ permalink raw reply [flat|nested] 17+ messages in thread
* [glibc/azanella/clang] Fix inhibit_stack_protector for clang
@ 2022-03-29 20:28 Adhemerval Zanella
0 siblings, 0 replies; 17+ messages in thread
From: Adhemerval Zanella @ 2022-03-29 20:28 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=85a21cb2048f4f63e73d0616c9a01e0718546117
commit 85a21cb2048f4f63e73d0616c9a01e0718546117
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Wed Mar 9 17:43:42 2022 -0300
Fix inhibit_stack_protector for clang
Diff:
---
include/libc-symbols.h | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/include/libc-symbols.h b/include/libc-symbols.h
index f4c1312ba5..4a55a8f7f9 100644
--- a/include/libc-symbols.h
+++ b/include/libc-symbols.h
@@ -446,8 +446,13 @@ for linking")
/* Used to disable stack protection in sensitive places, like ifunc
resolvers and early static TLS init. */
#ifdef HAVE_CC_NO_STACK_PROTECTOR
-# define inhibit_stack_protector \
+# ifdef __clang__
+# define inhibit_stack_protector \
+ __attribute__((no_stack_protector))
+# else
+# define inhibit_stack_protector \
__attribute__ ((__optimize__ ("-fno-stack-protector")))
+# endif
#else
# define inhibit_stack_protector
#endif
^ permalink raw reply [flat|nested] 17+ messages in thread
* [glibc/azanella/clang] Fix inhibit_stack_protector for clang
@ 2022-03-16 18:00 Adhemerval Zanella
0 siblings, 0 replies; 17+ messages in thread
From: Adhemerval Zanella @ 2022-03-16 18:00 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=1c898089f351974f2d71e2643cced160b5b5396b
commit 1c898089f351974f2d71e2643cced160b5b5396b
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Wed Mar 9 17:43:42 2022 -0300
Fix inhibit_stack_protector for clang
Diff:
---
include/libc-symbols.h | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/include/libc-symbols.h b/include/libc-symbols.h
index f4c1312ba5..4a55a8f7f9 100644
--- a/include/libc-symbols.h
+++ b/include/libc-symbols.h
@@ -446,8 +446,13 @@ for linking")
/* Used to disable stack protection in sensitive places, like ifunc
resolvers and early static TLS init. */
#ifdef HAVE_CC_NO_STACK_PROTECTOR
-# define inhibit_stack_protector \
+# ifdef __clang__
+# define inhibit_stack_protector \
+ __attribute__((no_stack_protector))
+# else
+# define inhibit_stack_protector \
__attribute__ ((__optimize__ ("-fno-stack-protector")))
+# endif
#else
# define inhibit_stack_protector
#endif
^ permalink raw reply [flat|nested] 17+ messages in thread
* [glibc/azanella/clang] Fix inhibit_stack_protector for clang
@ 2022-03-15 18:38 Adhemerval Zanella
0 siblings, 0 replies; 17+ messages in thread
From: Adhemerval Zanella @ 2022-03-15 18:38 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=1c898089f351974f2d71e2643cced160b5b5396b
commit 1c898089f351974f2d71e2643cced160b5b5396b
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Wed Mar 9 17:43:42 2022 -0300
Fix inhibit_stack_protector for clang
Diff:
---
include/libc-symbols.h | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/include/libc-symbols.h b/include/libc-symbols.h
index f4c1312ba5..4a55a8f7f9 100644
--- a/include/libc-symbols.h
+++ b/include/libc-symbols.h
@@ -446,8 +446,13 @@ for linking")
/* Used to disable stack protection in sensitive places, like ifunc
resolvers and early static TLS init. */
#ifdef HAVE_CC_NO_STACK_PROTECTOR
-# define inhibit_stack_protector \
+# ifdef __clang__
+# define inhibit_stack_protector \
+ __attribute__((no_stack_protector))
+# else
+# define inhibit_stack_protector \
__attribute__ ((__optimize__ ("-fno-stack-protector")))
+# endif
#else
# define inhibit_stack_protector
#endif
^ permalink raw reply [flat|nested] 17+ messages in thread
* [glibc/azanella/clang] Fix inhibit_stack_protector for clang
@ 2022-03-11 17:22 Adhemerval Zanella
0 siblings, 0 replies; 17+ messages in thread
From: Adhemerval Zanella @ 2022-03-11 17:22 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=f15c801ee8381873f3ebc02f00385c6fb4c830b1
commit f15c801ee8381873f3ebc02f00385c6fb4c830b1
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Wed Mar 9 17:43:42 2022 -0300
Fix inhibit_stack_protector for clang
Diff:
---
include/libc-symbols.h | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/include/libc-symbols.h b/include/libc-symbols.h
index f4c1312ba5..4a55a8f7f9 100644
--- a/include/libc-symbols.h
+++ b/include/libc-symbols.h
@@ -446,8 +446,13 @@ for linking")
/* Used to disable stack protection in sensitive places, like ifunc
resolvers and early static TLS init. */
#ifdef HAVE_CC_NO_STACK_PROTECTOR
-# define inhibit_stack_protector \
+# ifdef __clang__
+# define inhibit_stack_protector \
+ __attribute__((no_stack_protector))
+# else
+# define inhibit_stack_protector \
__attribute__ ((__optimize__ ("-fno-stack-protector")))
+# endif
#else
# define inhibit_stack_protector
#endif
^ permalink raw reply [flat|nested] 17+ messages in thread
* [glibc/azanella/clang] Fix inhibit_stack_protector for clang
@ 2022-03-10 19:21 Adhemerval Zanella
0 siblings, 0 replies; 17+ messages in thread
From: Adhemerval Zanella @ 2022-03-10 19:21 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=202168c3f7135a187690092e09c1c9a388355c51
commit 202168c3f7135a187690092e09c1c9a388355c51
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Wed Mar 9 17:43:42 2022 -0300
Fix inhibit_stack_protector for clang
Diff:
---
include/libc-symbols.h | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/include/libc-symbols.h b/include/libc-symbols.h
index f4c1312ba5..4a55a8f7f9 100644
--- a/include/libc-symbols.h
+++ b/include/libc-symbols.h
@@ -446,8 +446,13 @@ for linking")
/* Used to disable stack protection in sensitive places, like ifunc
resolvers and early static TLS init. */
#ifdef HAVE_CC_NO_STACK_PROTECTOR
-# define inhibit_stack_protector \
+# ifdef __clang__
+# define inhibit_stack_protector \
+ __attribute__((no_stack_protector))
+# else
+# define inhibit_stack_protector \
__attribute__ ((__optimize__ ("-fno-stack-protector")))
+# endif
#else
# define inhibit_stack_protector
#endif
^ permalink raw reply [flat|nested] 17+ messages in thread
end of thread, other threads:[~2023-02-09 19:46 UTC | newest]
Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-04 12:57 [glibc/azanella/clang] Fix inhibit_stack_protector for clang Adhemerval Zanella
-- strict thread matches above, loose matches on Subject: below --
2023-02-09 19:46 Adhemerval Zanella
2022-10-28 17:39 Adhemerval Zanella
2022-06-09 21:18 Adhemerval Zanella
2022-06-09 13:14 Adhemerval Zanella
2022-06-03 14:04 Adhemerval Zanella
2022-05-13 14:18 Adhemerval Zanella
2022-05-12 19:31 Adhemerval Zanella
2022-05-10 18:22 Adhemerval Zanella
2022-04-29 14:02 Adhemerval Zanella
2022-04-04 12:52 Adhemerval Zanella
2022-03-31 19:04 Adhemerval Zanella
2022-03-29 20:28 Adhemerval Zanella
2022-03-16 18:00 Adhemerval Zanella
2022-03-15 18:38 Adhemerval Zanella
2022-03-11 17:22 Adhemerval Zanella
2022-03-10 19:21 Adhemerval Zanella
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).