mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-21 22:47:50 +00:00
fa48054959
This patch extends the interface of the dynamic linker with the ability to replace the running binary executable by another one. It is designated for the implementation of execve. The interface consists of two new functions. 'Dynamic_linker::keep' marks the specified shared object as unloadable. This can be used to pin a set of libraries (i.e., the libc) within the local address space while replacing the binary and other higher-level libraries. 'Dynamic_linker::respawn' unloads the current binary, loads the one specifed as first argument, and looks up the entry point symbol of the new binary, which would be "main" for POSIX programs. In addition to implementing the new interface, the patch adjusts the linker at various places that previously assumed the binary to be constant over runtime. Issue #3481 |
||
---|---|---|
.. | ||
etc | ||
include | ||
lib | ||
mk | ||
ports | ||
recipes | ||
run | ||
src | ||
xsd | ||
README |
This is generic part of the Genode implementation. It consists of two parts: :_Core_: is the ultimate root of the Genode application tree and provides abstractions for the lowest-level hardware resources such as RAM, ROM, CPU, and generic device access. All generic parts of Core can be found here - for system-specific implementations refer to the appropriate 'base-<system>' directory. :_Base libraries and protocols_: that are used by each Genode component to interact with other components. This is the glue that holds everything together. _Core_ may export information about the hardware platform by an ROM called 'platform_info'. Depending on the platform, e.g. ARM or x86 or riscv, and depending on the boot mode and boot loader and kernel, some nodes may not be populated. !<platform_info> ! <acpi revision="2" rsdt="0x1fe93074" xsdt="0x1fe930e8"/> ! <boot> ! <framebuffer phys="0x7300000" width="1024" height="768" bpp="32"/> ! </boot> !</platform_info> If the ACPI RSDT and XSDT physical pointer is reported by the used kernel and/or bootloader, _Core_ may provide this information by the ROM. If the graphic device is initialised and can be directly used by a framebuffer driver, _Core_ may provide the physical pointer to the framebuffer, the resolution and color depth in bits.