git: dc6d1c831d74 - stable/13 - rtld-elf: Delete unused RELOC_ALIGNED_P copies
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 15 Dec 2025 18:19:03 UTC
The branch stable/13 has been updated by jrtc27:
URL: https://cgit.FreeBSD.org/src/commit/?id=dc6d1c831d74af01b97fc7fe751bc6717500d172
commit dc6d1c831d74af01b97fc7fe751bc6717500d172
Author: Jessica Clarke <jrtc27@FreeBSD.org>
AuthorDate: 2025-07-11 01:07:04 +0000
Commit: Jessica Clarke <jrtc27@FreeBSD.org>
CommitDate: 2025-12-15 17:56:37 +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
(cherry picked from commit 02d06043ba88f931f9debd5aa519fc303ca70d11)
---
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 c65b5dd431a0..b5f550e8bb71 100644
--- a/libexec/rtld-elf/aarch64/reloc.c
+++ b/libexec/rtld-elf/aarch64/reloc.c
@@ -35,13 +35,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 03d3c2d0c9ba..5542295f8811 100644
--- a/libexec/rtld-elf/riscv/reloc.c
+++ b/libexec/rtld-elf/riscv/reloc.c
@@ -41,13 +41,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)
{