mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-31 08:25:38 +00:00
8b172bf22e
The code in base-hw/src/bootstrap/platform.cc uses segment flags for identification purposes. Based on this information the code decides what to do with each segment. Unfortunately the linker script does not actually ensure the flags for a specific named segment match expectations. The code relies on implicit linker behaviour. This implicit behaviour can vary between linkers. This breaks arm_v7a base-hw builds linked with LLVM's lld linker. The segment named "ro" ends up having writeable flag set when using LLD. This patch ensures that all ELF segments in genode.ld have their required perimssion flags set explicitly. Fixes #3988
This directory contains all source codes.