git: 02d06043ba88 - main - rtld-elf: Delete unused RELOC_ALIGNED_P copies
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 11 Jul 2025 01:07:15 UTC
The branch main has been updated by jrtc27:
URL: https://cgit.FreeBSD.org/src/commit/?id=02d06043ba88f931f9debd5aa519fc303ca70d11
commit 02d06043ba88f931f9debd5aa519fc303ca70d11
Author: Jessica Clarke <jrtc27@FreeBSD.org>
AuthorDate: 2025-07-11 01:07:04 +0000
Commit: Jessica Clarke <jrtc27@FreeBSD.org>
CommitDate: 2025-07-11 01:07:04 +0000
rtld-elf: Delete unused RELOC_ALIGNED_P copies
This was copied from arm to aarch64 to riscv, but only arm uses it.
MFC after: 1 week
---
libexec/rtld-elf/aarch64/reloc.c | 7 -------
libexec/rtld-elf/riscv/reloc.c | 7 -------
2 files changed, 14 deletions(-)
diff --git a/libexec/rtld-elf/aarch64/reloc.c b/libexec/rtld-elf/aarch64/reloc.c
index 2b64b48585db..62d664f8fb80 100644
--- a/libexec/rtld-elf/aarch64/reloc.c
+++ b/libexec/rtld-elf/aarch64/reloc.c
@@ -36,13 +36,6 @@
#include "rtld.h"
#include "rtld_printf.h"
-/*
- * It is possible for the compiler to emit relocations for unaligned data.
- * We handle this situation with these inlines.
- */
-#define RELOC_ALIGNED_P(x) \
- (((uintptr_t)(x) & (sizeof(void *) - 1)) == 0)
-
/*
* This is not the correct prototype, but we only need it for
* a function pointer to a simple asm function.
diff --git a/libexec/rtld-elf/riscv/reloc.c b/libexec/rtld-elf/riscv/reloc.c
index 390e8c458c28..25c0befb774e 100644
--- a/libexec/rtld-elf/riscv/reloc.c
+++ b/libexec/rtld-elf/riscv/reloc.c
@@ -40,13 +40,6 @@
#include "rtld.h"
#include "rtld_printf.h"
-/*
- * It is possible for the compiler to emit relocations for unaligned data.
- * We handle this situation with these inlines.
- */
-#define RELOC_ALIGNED_P(x) \
- (((uintptr_t)(x) & (sizeof(void *) - 1)) == 0)
-
uint64_t
set_gp(Obj_Entry *obj)
{