[PATCH v2 2/2] aarch64: ld: add tests for combination of bti and memory-seal

Matthieu Longo matthieu.longo@arm.com
Wed Apr 2 09:36:25 GMT 2025


On 2025-04-02 10:16, Matthieu Longo wrote:
> On 2025-04-01 16:06, Yury Khrustalev wrote:
>> ---
>>   .../ld-aarch64/protections/bti-plt-1-b.d      |  2 +-
>>   .../ld-aarch64/protections/bti-plt-1-d.d      | 32 +++++++++++++++++++
>>   .../ld-aarch64/protections/bti-plt-2-d.d      | 14 ++++++++
>>   3 files changed, 47 insertions(+), 1 deletion(-)
>>   create mode 100644 ld/testsuite/ld-aarch64/protections/bti-plt-1-d.d
>>   create mode 100644 ld/testsuite/ld-aarch64/protections/bti-plt-2-d.d
>>
>> diff --git a/ld/testsuite/ld-aarch64/protections/bti-plt-1-b.d b/ld/ 
>> testsuite/ld-aarch64/protections/bti-plt-1-b.d
>> index 1bf956ca19f..4b0e424f77e 100644
>> --- a/ld/testsuite/ld-aarch64/protections/bti-plt-1-b.d
>> +++ b/ld/testsuite/ld-aarch64/protections/bti-plt-1-b.d
>> @@ -2,7 +2,7 @@
>>   #source: bti-plt-1.s
>>   #target: [check_shared_lib_support]
>>   #as: -mabi=lp64 -defsym __property_bti__=1
>> -#ld: -shared -z force-bti -T bti-plt.ld -L./tmpdir -lbti-plt-so
>> +#ld: -shared -T bti-plt.ld -L./tmpdir -lbti-plt-so
> 
> Is it a mistake ?
> Why was this test modified ?

Sorry, my mistake, I hadn't seen the name of the test. "-z force-bti" 
was not supposed to be on the command line.
This is a fix of an existing issue. Good catch Yury.

Matthieu.

> 
>>   #objdump: -dr -j .plt
>>   [^:]*: *file format elf64-.*aarch64


More information about the Binutils mailing list