const char *msg
= (tdata->sw_protections.bti_report == MARKING_WARN)
- ? _("%pB: warning: BTI turned on by -z force-bti on the output when all "
- "inputs do not have BTI in NOTE section.\n")
- : _("%X%pB: error: BTI turned on by -z force-bti on the output when all "
- "inputs do not have BTI in NOTE section.\n");
+ ? _("%pB: warning: BTI is required by -z force-bti, but this input object "
+ "file lacks the necessary property note.\n")
+ : _("%X%pB: error: BTI is required by -z force-bti, but this input object "
+ "file lacks the necessary property note.\n");
info->callbacks->einfo (msg, ebfd);
}
\ No newline at end of file
#target: [check_shared_lib_support]
#as: -mabi=lp64
#ld: -shared -z force-bti -T bti-plt.ld -L./tmpdir -lbti-plt-so
-#warning: .*bti-plt-1\.o: warning: BTI turned on by -z force-bti.*
+#warning: .*bti-plt-1\.o: warning: BTI is required by -z force-bti.*
#objdump: -dr -j .plt
[^:]*: *file format elf64-.*aarch64
#target: [check_shared_lib_support]
#as: -mabi=lp64
#ld: -shared -z force-bti -T bti-plt.ld
-#warning: .*bti-plt-2\.o: warning: BTI turned on by -z force-bti.*
-#warning: .*bti-plt-1\.o: warning: BTI turned on by -z force-bti.*
+#warning: .*bti-plt-2\.o: warning: BTI is required by -z force-bti.*
+#warning: .*bti-plt-1\.o: warning: BTI is required by -z force-bti.*
#readelf: -n
# Should warn about the missing input BTI NOTE but should still mark
#target: [check_shared_lib_support]
#as: -mabi=lp64
#ld: -shared -z force-bti -z bti-report=error -T bti-plt.ld
-#error: .*bti-plt-2\.o: error: BTI turned on by -z force-bti.*
-#error: .*bti-plt-1\.o: error: BTI turned on by -z force-bti.*
+#error: .*bti-plt-2\.o: error: BTI is required by -z force-bti.*
+#error: .*bti-plt-1\.o: error: BTI is required by -z force-bti.*
#target: [check_shared_lib_support]
#as: -mabi=lp64
#ld: -shared -z force-bti -z bti-report=warning -T bti-plt.ld
-#warning: .*bti-plt-2\.o: warning: BTI turned on by -z force-bti.*
-#warning: .*bti-plt-1\.o: warning: BTI turned on by -z force-bti.*
+#warning: .*bti-plt-2\.o: warning: BTI is required by -z force-bti.*
+#warning: .*bti-plt-1\.o: warning: BTI is required by -z force-bti.*
#readelf: -n
# Should warn about the missing input BTI NOTE but should still mark
#target: [check_shared_lib_support]
#as: -mabi=lp64
#ld: -shared -z force-bti -z bti-report -T bti-plt.ld
-#warning: .*bti-plt-2\.o: warning: BTI turned on by -z force-bti.*
-#warning: .*bti-plt-1\.o: warning: BTI turned on by -z force-bti.*
+#warning: .*bti-plt-2\.o: warning: BTI is required by -z force-bti.*
+#warning: .*bti-plt-1\.o: warning: BTI is required by -z force-bti.*
#readelf: -n
# Should warn about the missing input BTI NOTE but should still mark
#target: [check_shared_lib_support]
#as: -mabi=lp64
#ld: -z force-bti -e _start -T bti-plt.ld -L./tmpdir -lbti-plt-so
-#warning: .*bti-plt-1\.o: warning: BTI turned on by -z force-bti.*
+#warning: .*bti-plt-1\.o: warning: BTI is required by -z force-bti.*
#readelf: -n
# Should warn about the missing input BTI NOTE but should still mark
#target: [check_shared_lib_support]
#as: -mabi=lp64
#ld: -z force-bti -z bti-report=error -e _start -T bti-plt.ld -L./tmpdir -lbti-plt-so
-#error: .*bti-plt-1\.o: error: BTI turned on by -z force-bti.*
+#error: .*bti-plt-1\.o: error: BTI is required by -z force-bti.*
#target: [check_shared_lib_support]
#as: -mabi=lp64
#ld: -z force-bti -z bti-report=warning -e _start -T bti-plt.ld -L./tmpdir -lbti-plt-so
-#warning: .*bti-plt-1\.o: warning: BTI turned on by -z force-bti.*
+#warning: .*bti-plt-1\.o: warning: BTI is required by -z force-bti.*
#readelf: -n
# Should warn about the missing input BTI NOTE but should still mark
#target: [check_shared_lib_support]
#as: -mabi=lp64
#ld: -z force-bti -z bti-report -e _start -T bti-plt.ld -L./tmpdir -lbti-plt-so
-#warning: .*bti-plt-1\.o: warning: BTI turned on by -z force-bti.*
+#warning: .*bti-plt-1\.o: warning: BTI is required by -z force-bti.*
#readelf: -n
# Should warn about the missing input BTI NOTE but should still mark
#target: [check_shared_lib_support]
#as: -mabi=lp64 -defsym __property_pac__=1
#ld: -shared -z force-bti
-#warning: .*property-bti-pac2.*: warning: BTI turned on by -z force-bti.*$
+#warning: .*property-bti-pac2.*: warning: BTI is required by -z force-bti.*$
#readelf: -n
# Should warn about the missing input BTI NOTE but should still mark
#ld: -z force-bti -e main
#readelf: -l --wide
#target: *linux*
-#warning: .*property-bti-pac4.*: warning: BTI turned on by -z force-bti.*
+#warning: .*property-bti-pac4.*: warning: BTI is required by -z force-bti.*
#...
GNU_PROPERTY .* +0x8
#ld: -m [aarch64_choose_ilp32_emul] -z force-bti -e main
#readelf: -l --wide
#target: *linux*
-#warning: .*property-bti-pac4.*: warning: BTI turned on by -z force-bti.*
+#warning: .*property-bti-pac4.*: warning: BTI is required by -z force-bti.*
#...
GNU_PROPERTY .* +0x4