Add the Branch Target Identification (BTI) note to libc assembly
sources. As all obect files need the note for the library to have it
we need to insert it in all asm files.
Sponsored by: Arm Ltd
Differential D42228
libc: Teach libc about the BTI elf note andrew on Oct 16 2023, 4:08 PM. Authored by Tags None Referenced Files
Details Add the Branch Target Identification (BTI) note to libc assembly Sponsored by: Arm Ltd
Diff Detail
Event TimelineComment Actions Can we have some simple regression test which compiles and links a sample program with combinations of PAC and BTI enabled and disabled, and then verifies that libc and rtld don't silently cause features to be disabled? I'm worried that this will be a maintenance burden as new MI asm files are added. Comment Actions There is a flag for lld that will cause it to fail to link when the note is missing BTI support. I've been using it to find all assembly files missing the note. Comment Actions It would be nice if there was a way for the compiler to insert/update the note, rather than having to manually annotate every single assembly file... |