-/* $OpenBSD: rtld_machine.c,v 1.21 2022/01/08 06:49:41 guenther Exp $ */
+/* $OpenBSD: rtld_machine.c,v 1.22 2023/01/29 20:30:21 gnezdo Exp $ */
/*
* Copyright (c) 2004 Dale Rahn
void _dl_reloc_plt(Elf_Word *where, Elf_Addr value, Elf_RelA *rel);
-#define nitems(_a) (sizeof((_a)) / sizeof((_a)[0]))
-
int
_dl_md_reloc(elf_object_t *object, int rel, int relsz)
{
-/* $OpenBSD: rtld_machine.c,v 1.41 2022/05/01 11:03:48 kettenis Exp $ */
+/* $OpenBSD: rtld_machine.c,v 1.42 2023/01/29 20:30:21 gnezdo Exp $ */
/*
* Copyright (c) 2002,2004 Dale Rahn
#include "util.h"
#include "resolve.h"
-#define nitems(_a) (sizeof((_a)) / sizeof((_a)[0]))
-
int64_t pcookie __attribute__((section(".openbsd.randomdata"))) __dso_hidden;
/*
-/* $OpenBSD: rtld_machine.c,v 1.50 2022/05/10 20:23:57 kettenis Exp $ */
+/* $OpenBSD: rtld_machine.c,v 1.51 2023/01/29 20:30:21 gnezdo Exp $ */
/*
* Copyright (c) 2002 Dale Rahn
#include "util.h"
#include "resolve.h"
-#define nitems(_a) (sizeof((_a)) / sizeof((_a)[0]))
-
int64_t pcookie __attribute__((section(".openbsd.randomdata"))) __dso_hidden;
/*
-/* $OpenBSD: rtld_machine.c,v 1.3 2022/01/08 06:49:42 guenther Exp $ */
+/* $OpenBSD: rtld_machine.c,v 1.4 2023/01/29 20:30:21 gnezdo Exp $ */
/*
* Copyright (c) 2004,2021 Dale Rahn <drahn@openbsd.org>
void _dl_reloc_plt(Elf_Word *where, Elf_Addr value, Elf_RelA *rel);
-#define nitems(_a) (sizeof((_a)) / sizeof((_a)[0]))
-
int
_dl_md_reloc(elf_object_t *object, int rel, int relsz)
{
-/* $OpenBSD: rtld_machine.c,v 1.35 2022/09/05 20:09:24 miod Exp $ */
+/* $OpenBSD: rtld_machine.c,v 1.36 2023/01/29 20:30:21 gnezdo Exp $ */
/*
* Copyright (c) 2004 Dale Rahn
#include "util.h"
#include "resolve.h"
-#define nitems(_a) (sizeof((_a)) / sizeof((_a)[0]))
-
int64_t pcookie __attribute__((section(".openbsd.randomdata"))) __dso_hidden;
void _dl_bind_start(void); /* XXX */
-/* $OpenBSD: util.h,v 1.37 2022/01/08 06:49:41 guenther Exp $ */
+/* $OpenBSD: util.h,v 1.38 2023/01/29 20:30:21 gnezdo Exp $ */
/*
* Copyright (c) 1998 Todd C. Miller <millert@openbsd.org>
#define _dl_round_page(x) \
(((x) + ((1 << _MAX_PAGE_SHIFT) - 1)) & ~((1 << _MAX_PAGE_SHIFT) - 1))
+#define nitems(_a) (sizeof((_a)) / sizeof((_a)[0]))
+
/*
* The following functions are declared inline so they can
* be used before bootstrap linking has been finished.