commit | f8fdcbf1930cf3cf8c0e63470cbdc6a1a4fd6db1 | [log] [tgz] |
---|---|---|
author | Suraj Malhotra <surajmalhotra@google.com> | Wed Jan 29 15:27:46 2025 -0800 |
committer | CQ Bot <fuchsia-internal-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jan 29 15:27:46 2025 -0800 |
tree | 4c6de613d75f39b5e83f8e3ac56be7234180bf92 | |
parent | fae0fa2821ef16d58b768caf40f41b890ee97361 [diff] |
[fdf][compat] Perform all dlopen and dlsym calls in the framework. This patch adds a modules section to the program stanza of the component manifest for drivers. This section provides an optional list of additional modules to load in addition to the driver as well as a list of symbols the primary driver would like to obtain from those modules. The symbols are then populated into the existing symbols field in the start args. Additonally, in order to support a feature in the compat driver, we also provide support for overriding dynamic libraries provided during the dynamic linking phase of the extra modules. This allows us to redirect libdriver.so to compat.so. Lastly, the compat driver was updated to take advantage of this feature and avoid calling dlopen and dlsym itself. Bug: 360403906 Change-Id: I2c9c36bec926cf0c40333d4d2a6f07f1355bb878 Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1186157 Commit-Queue: Auto-Submit <auto-submit@fuchsia-infra.iam.gserviceaccount.com> API-Review: Hunter Freyer <hjfreyer@google.com> Reviewed-by: Novin Changizi <novinc@google.com> Commit-Queue: Suraj Malhotra <surajmalhotra@google.com> Fuchsia-Auto-Submit: Suraj Malhotra <surajmalhotra@google.com> Reviewed-by: Sarah Chan <spqchan@google.com>
Fuchsia is an open source, general purpose operating system supporting modern 64-bit Intel and ARM processors.
We expect everyone interacting with our project to respect our code of conduct.
Read more about Fuchsia's principles.
See Getting Started.
See fuchsia.dev.