Changes in / [272a293:60c96cf] in mainline
- Files:
-
- 2 deleted
- 5 edited
-
HelenOS.config (modified) (1 diff)
-
defaults/amd64/Makefile.config (modified) (1 diff)
-
uspace/Makefile.common (modified) (1 diff)
-
uspace/lib/c/arch/amd64/include/libarch/rtld/module.h (deleted)
-
uspace/lib/c/arch/ia32/include/libarch/rtld/module.h (deleted)
-
uspace/lib/c/generic/elf/elf_mod.c (modified) (2 diffs)
-
uspace/lib/c/generic/rtld/module.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
HelenOS.config
r272a293 r60c96cf 578 578 579 579 % Dynamic linking support 580 ! [PLATFORM= amd64|PLATFORM=ia32] CONFIG_RTLD (y/n)581 ! [PLATFORM=abs32le|PLATFORM=a rm32|PLATFORM=ia64|PLATFORM=mips32|PLATFORM=ppc32|PLATFORM=riscv64|PLATFORM=sparc64] CONFIG_RTLD (n)580 ! [PLATFORM=ia32] CONFIG_RTLD (n/y) 581 ! [PLATFORM=abs32le|PLATFORM=amd64|PLATFORM=arm32|PLATFORM=ia64|PLATFORM=mips32|PLATFORM=ppc32|PLATFORM=riscv64|PLATFORM=sparc64] CONFIG_RTLD (n) 582 582 583 583 % Build shared libraries -
defaults/amd64/Makefile.config
r272a293 r60c96cf 65 65 CONFIG_BFB_BPP = 16 66 66 67 # Dynamic linking support68 CONFIG_RTLD = y69 70 # Build shared libraries71 CONFIG_BUILD_SHARED_LIBS = y72 73 # Link against shared libraries74 CONFIG_USE_SHARED_LIBS = y75 76 67 # Include userspace unit tests (PCUT) 77 68 CONFIG_PCUT_TESTS = y -
uspace/Makefile.common
r272a293 r60c96cf 112 112 113 113 AFLAGS = --fatal-warnings 114 LDFLAGS = -Wl,--fatal-warnings,--warn-common -Wl,-z,max-page-size=0x1000114 LDFLAGS = -Wl,--fatal-warnings,--warn-common 115 115 116 116 ifeq ($(STATIC_NEEDED),y) -
uspace/lib/c/generic/elf/elf_mod.c
r272a293 r60c96cf 420 420 seg_ptr = (void *) seg_addr; 421 421 422 DPRINTF("Load segment at addr %p, size 0x%zx, flags %c%c%c\n", (void *) seg_addr, 423 entry->p_memsz, 424 (entry->p_flags & PF_R) ? 'r' : '-', 425 (entry->p_flags & PF_W) ? 'w' : '-', 426 (entry->p_flags & PF_X) ? 'x' : '-'); 422 DPRINTF("Load segment at addr %p, size 0x%zx\n", (void *) seg_addr, 423 entry->p_memsz); 427 424 428 425 if (entry->p_align > 1) { … … 487 484 return EE_OK; 488 485 489 DPRINTF("as_area_change_flags(%p, %x)\n", 490 (uint8_t *) base + bias, flags); 491 rc = as_area_change_flags((uint8_t *) base + bias, flags); 486 rc = as_area_change_flags(seg_ptr, flags); 492 487 if (rc != EOK) { 493 488 DPRINTF("Failed to set memory area flags.\n"); -
uspace/lib/c/generic/rtld/module.c
r272a293 r60c96cf 50 50 #include <rtld/rtld_arch.h> 51 51 #include <rtld/module.h> 52 #include <libarch/rtld/module.h>53 52 54 53 #include "../private/libc.h" … … 207 206 DPRINTF("filename:'%s'\n", name_buf); 208 207 209 rc = elf_load_file_name(name_buf, RTLD_MODULE_LDF, &info);208 rc = elf_load_file_name(name_buf, ELDF_RW, &info); 210 209 if (rc != EE_OK) { 211 210 printf("Failed to load '%s'\n", name_buf);
Note:
See TracChangeset
for help on using the changeset viewer.
