mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-12-19 01:19:41 +08:00
aarch64: rename BTI error/warning message
The previous message for missing BTI feature in GNU properties was not very clear. The new message explains that a missing GNU property marking is lacking on this specific input.
This commit is contained in:
@@ -999,10 +999,10 @@ _bfd_aarch64_elf_check_bti_report (struct bfd_link_info *info, bfd *ebfd)
|
||||
|
||||
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);
|
||||
}
|
||||
@@ -3,7 +3,7 @@
|
||||
#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
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
#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
|
||||
|
||||
@@ -4,5 +4,5 @@
|
||||
#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.*
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
#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
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
#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
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#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
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
#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.*
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#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
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#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
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#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
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#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
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#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
|
||||
|
||||
Reference in New Issue
Block a user