Skip to content

Commit

Permalink
[sysvabi64] Make it clear that an escaped address must be live.
Browse files Browse the repository at this point in the history
An address may be in registers or memory, but not live, the
object producer may assume that this address does not require
a BTI.
  • Loading branch information
smithp35 committed Nov 14, 2024
1 parent 96aa942 commit b1d10d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sysvabi64/sysvabi64.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1698,9 +1698,9 @@ the destination of an indirect branch originating in the same
relocatable object.

A relocatable object producer is required to add a BTI instruction to
a location when the address of that location escapes out of the
relocatable object. This includes the locations of all symbols that
can be exported into the dynamic symbol table by a static linker.
a location when the address of that location is live and escapes out
of the relocatable object. This includes the locations of all symbols
that can be exported into the dynamic symbol table by a static linker.

A static linker is required to generate `Custom PLTs`_ with BTI
instructions.
Expand Down

0 comments on commit b1d10d3

Please sign in to comment.