public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/azanella/clang] elf: Fix tests that require interposable symbols
@ 2024-04-17 20:14 Adhemerval Zanella
0 siblings, 0 replies; 5+ messages in thread
From: Adhemerval Zanella @ 2024-04-17 20:14 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=2cebb84d7e5858ac3f0c987a4e73e12f0bd406d8
commit 2cebb84d7e5858ac3f0c987a4e73e12f0bd406d8
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Wed Jan 17 15:21:25 2024 -0300
elf: Fix tests that require interposable symbols
clang defaults to -fsemantic-interposition, which in turn trigger some
optimizations (like inline) that makes some tests that rely on ELF
symbol interposition to fail. For this case, explicit set the symbol as
weak to avoid it.
Diff:
---
elf/tst-dlclose-lazy-mod2.c | 1 +
elf/tst-piemod1.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/elf/tst-dlclose-lazy-mod2.c b/elf/tst-dlclose-lazy-mod2.c
index d1ae34330c..544803ca3e 100644
--- a/elf/tst-dlclose-lazy-mod2.c
+++ b/elf/tst-dlclose-lazy-mod2.c
@@ -20,6 +20,7 @@
#include <stdlib.h>
void
+__attribute__ ((weak))
exported_function (int ignored)
{
/* This function is interposed from tst-dlclose-lazy-mod1.so and
diff --git a/elf/tst-piemod1.c b/elf/tst-piemod1.c
index 72d7e0a187..225c057ea3 100644
--- a/elf/tst-piemod1.c
+++ b/elf/tst-piemod1.c
@@ -1,6 +1,7 @@
#include <stdio.h>
int
+__attribute__((weak))
foo (void)
{
return 21;
^ permalink raw reply [flat|nested] 5+ messages in thread
* [glibc/azanella/clang] elf: Fix tests that require interposable symbols
@ 2024-04-02 16:00 Adhemerval Zanella
0 siblings, 0 replies; 5+ messages in thread
From: Adhemerval Zanella @ 2024-04-02 16:00 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=c551185493dc92d7704fbdabc8bbd8271000fe36
commit c551185493dc92d7704fbdabc8bbd8271000fe36
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Wed Jan 17 15:21:25 2024 -0300
elf: Fix tests that require interposable symbols
clang defaults to -fsemantic-interposition, which in turn trigger some
optimizations (like inline) that makes some tests that rely on ELF
symbol interposition to fail. For this case, explicit set the symbol as
weak to avoid it.
Diff:
---
elf/tst-dlclose-lazy-mod2.c | 1 +
elf/tst-piemod1.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/elf/tst-dlclose-lazy-mod2.c b/elf/tst-dlclose-lazy-mod2.c
index d1ae34330c..544803ca3e 100644
--- a/elf/tst-dlclose-lazy-mod2.c
+++ b/elf/tst-dlclose-lazy-mod2.c
@@ -20,6 +20,7 @@
#include <stdlib.h>
void
+__attribute__ ((weak))
exported_function (int ignored)
{
/* This function is interposed from tst-dlclose-lazy-mod1.so and
diff --git a/elf/tst-piemod1.c b/elf/tst-piemod1.c
index 72d7e0a187..225c057ea3 100644
--- a/elf/tst-piemod1.c
+++ b/elf/tst-piemod1.c
@@ -1,6 +1,7 @@
#include <stdio.h>
int
+__attribute__((weak))
foo (void)
{
return 21;
^ permalink raw reply [flat|nested] 5+ messages in thread
* [glibc/azanella/clang] elf: Fix tests that require interposable symbols
@ 2024-02-09 17:39 Adhemerval Zanella
0 siblings, 0 replies; 5+ messages in thread
From: Adhemerval Zanella @ 2024-02-09 17:39 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=59c270c3e59a859ced1204d2be03510539a32925
commit 59c270c3e59a859ced1204d2be03510539a32925
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Wed Jan 17 15:21:25 2024 -0300
elf: Fix tests that require interposable symbols
clang defaults to -fsemantic-interposition, which in turn trigger some
optimizations (like inline) that makes some tests that rely on ELF
symbol interposition to fail. For this case, explicit set the symbol as
weak to avoid it.
Diff:
---
elf/tst-dlclose-lazy-mod2.c | 1 +
elf/tst-piemod1.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/elf/tst-dlclose-lazy-mod2.c b/elf/tst-dlclose-lazy-mod2.c
index d1ae34330c..544803ca3e 100644
--- a/elf/tst-dlclose-lazy-mod2.c
+++ b/elf/tst-dlclose-lazy-mod2.c
@@ -20,6 +20,7 @@
#include <stdlib.h>
void
+__attribute__ ((weak))
exported_function (int ignored)
{
/* This function is interposed from tst-dlclose-lazy-mod1.so and
diff --git a/elf/tst-piemod1.c b/elf/tst-piemod1.c
index 72d7e0a187..225c057ea3 100644
--- a/elf/tst-piemod1.c
+++ b/elf/tst-piemod1.c
@@ -1,6 +1,7 @@
#include <stdio.h>
int
+__attribute__((weak))
foo (void)
{
return 21;
^ permalink raw reply [flat|nested] 5+ messages in thread
* [glibc/azanella/clang] elf: Fix tests that require interposable symbols
@ 2024-02-07 14:14 Adhemerval Zanella
0 siblings, 0 replies; 5+ messages in thread
From: Adhemerval Zanella @ 2024-02-07 14:14 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=72ad590b4753e4fdb2cbef321a08e8155dc6c946
commit 72ad590b4753e4fdb2cbef321a08e8155dc6c946
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Wed Jan 17 15:21:25 2024 -0300
elf: Fix tests that require interposable symbols
clang defaults to -fsemantic-interposition, which in turn trigger some
optimizations (like inline) that makes some tests that rely on ELF
symbol interposition to fail. For this case, explicit set the symbol as
weak to avoid it.
Diff:
---
elf/tst-dlclose-lazy-mod2.c | 1 +
elf/tst-piemod1.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/elf/tst-dlclose-lazy-mod2.c b/elf/tst-dlclose-lazy-mod2.c
index d1ae34330c..544803ca3e 100644
--- a/elf/tst-dlclose-lazy-mod2.c
+++ b/elf/tst-dlclose-lazy-mod2.c
@@ -20,6 +20,7 @@
#include <stdlib.h>
void
+__attribute__ ((weak))
exported_function (int ignored)
{
/* This function is interposed from tst-dlclose-lazy-mod1.so and
diff --git a/elf/tst-piemod1.c b/elf/tst-piemod1.c
index 72d7e0a187..225c057ea3 100644
--- a/elf/tst-piemod1.c
+++ b/elf/tst-piemod1.c
@@ -1,6 +1,7 @@
#include <stdio.h>
int
+__attribute__((weak))
foo (void)
{
return 21;
^ permalink raw reply [flat|nested] 5+ messages in thread
* [glibc/azanella/clang] elf: Fix tests that require interposable symbols
@ 2024-01-29 18:04 Adhemerval Zanella
0 siblings, 0 replies; 5+ messages in thread
From: Adhemerval Zanella @ 2024-01-29 18:04 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=64ccce622fe2ac176863b5935c2cdd6561d95da8
commit 64ccce622fe2ac176863b5935c2cdd6561d95da8
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Wed Jan 17 15:21:25 2024 -0300
elf: Fix tests that require interposable symbols
clang defaults to -fsemantic-interposition, which in turn trigger some
optimizations (like inline) that makes some tests that rely on ELF
symbol interposition to fail. For this case, explicit set the symbol as
weak to avoid it.
Diff:
---
elf/tst-dlclose-lazy-mod2.c | 1 +
elf/tst-piemod1.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/elf/tst-dlclose-lazy-mod2.c b/elf/tst-dlclose-lazy-mod2.c
index d1ae34330c..544803ca3e 100644
--- a/elf/tst-dlclose-lazy-mod2.c
+++ b/elf/tst-dlclose-lazy-mod2.c
@@ -20,6 +20,7 @@
#include <stdlib.h>
void
+__attribute__ ((weak))
exported_function (int ignored)
{
/* This function is interposed from tst-dlclose-lazy-mod1.so and
diff --git a/elf/tst-piemod1.c b/elf/tst-piemod1.c
index 72d7e0a187..225c057ea3 100644
--- a/elf/tst-piemod1.c
+++ b/elf/tst-piemod1.c
@@ -1,6 +1,7 @@
#include <stdio.h>
int
+__attribute__((weak))
foo (void)
{
return 21;
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-04-17 20:14 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-17 20:14 [glibc/azanella/clang] elf: Fix tests that require interposable symbols Adhemerval Zanella
-- strict thread matches above, loose matches on Subject: below --
2024-04-02 16:00 Adhemerval Zanella
2024-02-09 17:39 Adhemerval Zanella
2024-02-07 14:14 Adhemerval Zanella
2024-01-29 18:04 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).