Skip to content

Commit 4aac845

Browse files
author
tb
committed
Also print addresses of the _libre_ symbols
1 parent 96e90d9 commit 4aac845

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/regress/lib/libcrypto/symbols/symbols.awk

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $OpenBSD: symbols.awk,v 1.14 2025/08/22 15:49:26 tb Exp $
1+
# $OpenBSD: symbols.awk,v 1.15 2025/08/22 15:52:34 tb Exp $
22

33
# Copyright (c) 2018,2020 Theo Buehler <[email protected]>
44
#
@@ -51,8 +51,12 @@ END {
5151

5252
printf("\t\};\n\n")
5353

54-
printf("\tfor (i = 0; i < sizeof(symbols) / sizeof(symbols[0]); i++)\n")
54+
printf("\tfor (i = 0; i < sizeof(symbols) / sizeof(symbols[0]); i++) {\n")
5555
printf("\t\tfprintf(stderr, \"%%s: %%p\\n\", symbols[i].name, symbols[i].addr);\n")
56+
printf("#if defined(USE_LIBRESSL_NAMESPACE)\n")
57+
printf("\t\tfprintf(stderr, \"_libre_%%s: %%p\\n\", symbols[i].name, symbols[i].libre_addr);\n")
58+
printf("#endif\n")
59+
printf("\t}\n")
5660
printf("\n\tprintf(\"OK\\n\");\n")
5761
printf("\n\treturn 0;\n}\n")
5862
}

0 commit comments

Comments
 (0)