Skip to content

Commit ca8c723

Browse files
committed
iskip: bugfix: apply policy per function
1 parent bb1c2ff commit ca8c723

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ functions.
8383

8484
Declare a function with `__attribute__((annotate("armhardnening=true")))` to
8585
include the function in the *whitelist* or with
86-
`__attribute__((annotate("armhardnening=true")))` to include the function in
86+
`__attribute__((annotate("armhardnening=false")))` to include the function in
8787
the *blacklist*. Use the flag `-iskip-deploy-policy` to specify the behavior of
8888
`iskip` in regards to *{white,black}list*.
8989

lib/util.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ namespace ARMHardeningUtil {
110110
cast<ConstantDataArray>(
111111
cast<GlobalVariable>(
112112
e->getOperand(1)->getOperand(0))->getOperand(0))->getAsCString();
113-
if (anno == name)
113+
if (fn == F && anno == name)
114114
return true;
115115
}
116116
}

0 commit comments

Comments
 (0)