diff options
Diffstat (limited to 'libexec/rtld-elf/aarch64/rtld_machdep.h')
-rw-r--r-- | libexec/rtld-elf/aarch64/rtld_machdep.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/libexec/rtld-elf/aarch64/rtld_machdep.h b/libexec/rtld-elf/aarch64/rtld_machdep.h index bdd5620867ba..36e3ec3e1a4e 100644 --- a/libexec/rtld-elf/aarch64/rtld_machdep.h +++ b/libexec/rtld-elf/aarch64/rtld_machdep.h @@ -26,8 +26,6 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. - * - * $FreeBSD$ */ #ifndef RTLD_MACHDEP_H @@ -35,6 +33,7 @@ #include <sys/types.h> #include <machine/atomic.h> +#include <machine/tls.h> struct Struct_Obj_Entry; @@ -46,6 +45,8 @@ struct Struct_Obj_Entry; (const Elf_Dyn *)_dynamic_addr; \ }) +bool arch_digest_note(struct Struct_Obj_Entry *obj, const Elf_Note *note); + Elf_Addr reloc_jmpslot(Elf_Addr *where, Elf_Addr target, const struct Struct_Obj_Entry *defobj, const struct Struct_Obj_Entry *obj, const Elf_Rel *rel); @@ -63,7 +64,7 @@ Elf_Addr reloc_jmpslot(Elf_Addr *where, Elf_Addr target, * Pass zeros into the ifunc resolver so we can change them later. The first * 8 arguments on arm64 are passed in registers so make them known values * if we decide to use them later. Because of this ifunc resolvers can assume - * no arguments are passeed in, and if this changes later will be able to + * no arguments are passed in, and if this changes later will be able to * compare the argument with 0 to see if it is set. */ #define call_ifunc_resolver(ptr) \ @@ -76,11 +77,9 @@ Elf_Addr reloc_jmpslot(Elf_Addr *where, Elf_Addr target, round(16, align) #define calculate_tls_offset(prev_offset, prev_size, size, align, offset) \ round(prev_offset + prev_size, align) -#define calculate_tls_end(off, size) ((off) + (size)) #define calculate_tls_post_size(align) \ round(TLS_TCB_SIZE, align) - TLS_TCB_SIZE -#define TLS_TCB_SIZE 16 typedef struct { unsigned long ti_module; unsigned long ti_offset; @@ -88,11 +87,6 @@ typedef struct { extern void *__tls_get_addr(tls_index *ti); -#define RTLD_DEFAULT_STACK_PF_EXEC PF_X -#define RTLD_DEFAULT_STACK_EXEC PROT_EXEC - #define md_abi_variant_hook(x) -#define TLS_DTV_OFFSET 0 - #endif |