Mark explicit_bzero() and reallocarray() as compat symbols. (#1408465)
parent
d11aaf38f3
commit
a0f7d51f23
@ -0,0 +1,18 @@
|
||||
diff -up libbsd-0.8.6/src/explicit_bzero.c.compat libbsd-0.8.6/src/explicit_bzero.c
|
||||
--- libbsd-0.8.6/src/explicit_bzero.c.compat 2018-05-22 16:06:09.926108522 -0600
|
||||
+++ libbsd-0.8.6/src/explicit_bzero.c 2018-05-22 16:06:43.102873673 -0600
|
||||
@@ -17,3 +17,5 @@ explicit_bzero(void *buf, size_t len)
|
||||
memset(buf, 0, len);
|
||||
__explicit_bzero_hook(buf, len);
|
||||
}
|
||||
+
|
||||
+asm(".symver explicit_bzero,explicit_bzero@LIBBSD_0.8");
|
||||
diff -up libbsd-0.8.6/src/reallocarray.c.compat libbsd-0.8.6/src/reallocarray.c
|
||||
--- libbsd-0.8.6/src/reallocarray.c.compat 2018-05-22 16:07:32.247007073 -0600
|
||||
+++ libbsd-0.8.6/src/reallocarray.c 2018-05-22 16:08:10.687893640 -0600
|
||||
@@ -36,3 +36,5 @@ reallocarray(void *optr, size_t nmemb, s
|
||||
}
|
||||
return realloc(optr, size * nmemb);
|
||||
}
|
||||
+
|
||||
+asm(".symver reallocarray,reallocarray@LIBBSD_0.8");
|
Loading…
Reference in new issue