From b9f11607b1731bc5f2391653cd8f4ebe48ba278e Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Mon, 21 Aug 2023 11:15:13 +1000 Subject: libdl: Realloc text memory if there are trampolines - Add resize to the allocator interface - Rework the trampoline variables in the obj struct to make better sense of what is happening Closes #4944 --- cpukit/libdl/rtl-mdreloc-sparc.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cpukit/libdl/rtl-mdreloc-sparc.c') diff --git a/cpukit/libdl/rtl-mdreloc-sparc.c b/cpukit/libdl/rtl-mdreloc-sparc.c index 7dd8a2af2f..9810de988e 100644 --- a/cpukit/libdl/rtl-mdreloc-sparc.c +++ b/cpukit/libdl/rtl-mdreloc-sparc.c @@ -209,6 +209,12 @@ rtems_rtl_elf_rel_resolve_sym (Elf_Word type) return r; } +uint32_t rtems_rtl_obj_tramp_alignment (const rtems_rtl_obj* obj) +{ + (void) obj; + return sizeof(uint32_t); +} + size_t rtems_rtl_elf_relocate_tramp_max_size (void) { -- cgit v1.2.3