summaryrefslogtreecommitdiff
path: root/ldso
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2020-06-10 22:02:45 -0400
committerRich Felker <dalias@aerifal.cx>2020-06-10 22:02:45 -0400
commite9f4fd1185badfc005fcfe5c7de27d58baec057c (patch)
tree95225d8a1d333cba4680711f499912a654cf0299 /ldso
parent25cef5c591fbee755a53f0d7920f4f554f343a53 (diff)
downloadmusl-e9f4fd1185badfc005fcfe5c7de27d58baec057c.tar.gz
have ldso track replacement of aligned_alloc
this is in preparation for improving behavior of malloc interposition.
Diffstat (limited to 'ldso')
-rw-r--r--ldso/dynlink.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ldso/dynlink.c b/ldso/dynlink.c
index f6926919..d3d4ddd2 100644
--- a/ldso/dynlink.c
+++ b/ldso/dynlink.c
@@ -1935,6 +1935,8 @@ void __dls3(size_t *sp, size_t *auxv)
* possibility of incomplete replacement. */
if (find_sym(head, "malloc", 1).dso != &ldso)
__malloc_replaced = 1;
+ if (find_sym(head, "aligned_alloc", 1).dso != &ldso)
+ __aligned_alloc_replaced = 1;
/* Switch to runtime mode: any further failures in the dynamic
* linker are a reportable failure rather than a fatal startup