# Re: \[PATCH v22 8/8\] x86/vdso: Add ENDBR64 to \_\_vdso\_sgx\_enter\_enclave

- From: Yu, Yu-cheng \<hidden\>
- Date: 2021-03-11 15:45:39 
- List: linux-doc
- Page: https://ratatoskr.run/linux-doc/2021/03/6296977
- Thread: https://ratatoskr.run/linux-doc/2021/03/6295910/t.md

```text
On 3/11/2021 12:42 AM, Peter Zijlstra wrote:
> On Thu, Mar 11, 2021 at 05:36:06AM +0200, Jarkko Sakkinen wrote:
>> Does it do any harm to put it there unconditionally?
>
> Blows up your text footprint and I$ pressure. These instructions are 4
> bytes each.
>
> Aside from that, they're a NOP, so only consume front-end resources
> (hopefully) on older CPUs and when IBT is disabled.
>

Thanks Peter.  I think probably we'll do the macro Boris suggested. That takes care of the visual clutter, and eliminates the need of using .byte when the assembler is outdated.

--
Yu-cheng
```
