mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 05:37:54 +00:00
f54c85e045
This patch decouples the kernel-specific implementation of the dynamic linker from its kernel-agnostic binary interface. The name of the kernel-specific dynamic linker binary now corresponds to the kernel, e.g., 'ld-linux.lib.so' or 'ld-nova.lib.so'. Applications are no longer linked directly against a concrete instance of the dynamic linker but against a shallow stub called 'ld.lib.so'. This stub contains nothing but the symbols provided by the dynamic linker. It thereby represents the Genode ABI. At system-integration time, the kernel-specific run/boot_dir back ends integrate the matching the kernel-specific variant of the dynamic linker as 'ld.lib.so' into the boot image. The ABI symbol file for the dynamic linker is located at 'base/lib/symbols/ld'. It contains the joint ABI of all supported architectures. The new utility 'tool/abi_symbols' eases the creation of such an ABI symbol file for a given shared library. Its result should be manually inspected and edited as needed. The patch removes the 'syscall' library from 'base_libs.mk' to avoid polluting the kernel-agnostic ABI with kernel-specific interfaces. Issue #2190 Issue #2195
15 lines
334 B
Plaintext
15 lines
334 B
Plaintext
proc binary_name_ld_lib_so { } { return "ld-linux.lib.so" }
|
|
|
|
|
|
##
|
|
# Populate boot directory with binaries on Linux
|
|
#
|
|
proc run_boot_dir {binaries} {
|
|
|
|
build { lib/ld/linux }
|
|
|
|
foreach binary $binaries {
|
|
set src_binary_path "../../../../bin/[kernel_specific_binary $binary]"
|
|
exec ln -sf $src_binary_path [run_dir]/genode/$binary }
|
|
}
|