|
|
422183 |
diff --git a/annocheck/hardened.c b/annocheck/hardened.c
|
|
|
422183 |
index d41c740..83645a7 100644
|
|
|
422183 |
--- a/annocheck/hardened.c
|
|
|
422183 |
+++ b/annocheck/hardened.c
|
|
|
422183 |
@@ -3523,8 +3523,12 @@ finish (annocheck_data * data)
|
|
|
422183 |
case TEST_STACK_PROT:
|
|
|
422183 |
if (per_file.current_tool == TOOL_GO)
|
|
|
422183 |
skip (data, i, SOURCE_FINAL_SCAN, "GO is stack safe");
|
|
|
422183 |
+ else if (per_file.seen_tools == TOOL_GAS
|
|
|
422183 |
+ || (per_file.gcc_from_comment && per_file.seen_tools == (TOOL_GAS | TOOL_GCC)))
|
|
|
422183 |
+ skip (data, i, SOURCE_FINAL_SCAN, "no compiled code found");
|
|
|
422183 |
else if (is_C_compiler (per_file.seen_tools))
|
|
|
422183 |
- maybe (data, i, SOURCE_FINAL_SCAN, "no valid notes found regarding this test");
|
|
|
422183 |
+ /* The skip is necessary because some glibc code is built this way. */
|
|
|
422183 |
+ skip (data, i, SOURCE_FINAL_SCAN, "no notes found regarding this feature");
|
|
|
422183 |
else
|
|
|
422183 |
skip (data, i, SOURCE_FINAL_SCAN, "not compiled code");
|
|
|
422183 |
break;
|
|
|
422183 |
diff --git a/tests/glibc-notes-test b/tests/glibc-notes-test
|
|
|
422183 |
index ab9e639..8496af8 100755
|
|
|
422183 |
--- a/tests/glibc-notes-test
|
|
|
422183 |
+++ b/tests/glibc-notes-test
|
|
|
422183 |
@@ -31,7 +31,7 @@ $GCC -pie -Wl,-z,now hello.o hello2.o hello3.o -L. -lhello -o glibc-notes.exe
|
|
|
422183 |
|
|
|
422183 |
# Run annocheck
|
|
|
422183 |
|
|
|
422183 |
-$ANNOCHECK glibc-notes.exe --skip-cf-protection --skip-property-note --ignore-gaps > glibc-notes.out
|
|
|
422183 |
+$ANNOCHECK glibc-notes.exe --skip-cf-protection --skip-property-note --skip-stack-realign --ignore-gaps > glibc-notes.out
|
|
|
422183 |
grep -e "PASS" glibc-notes.out
|
|
|
422183 |
if [ $? != 0 ];
|
|
|
422183 |
then
|