loader, libs: runtime linker and Ampr fixes for this title

Runtime linker relocation and fault handling, plus the Ampr and Audio2 paths
this title exercises during startup.
This commit is contained in:
Mac
2026-08-31 23:41:55 +05:30
parent 0551010010
commit f625a478ab
4 changed files with 366 additions and 30 deletions
+7 -2
View File
@@ -484,9 +484,14 @@ int KYTY_SYSV_ABI AudioOut2ContextDestroy(AudioOut2ContextHandle ctx) {
int KYTY_SYSV_ABI AudioOut2ContextSetAttributes(AudioOut2ContextHandle ctx,
const AudioOut2Attribute* attributes,
uint32_t num) {
PRINT_NAME();
LOGF("\t ctx = 0x%016" PRIx64 ", num = %" PRIu32 "\n", ctx, num);
static std::atomic<uint32_t> call_log {0};
if (call_log.fetch_add(1, std::memory_order_relaxed) < 8) {
PRINT_NAME();
}
EXIT_NOT_IMPLEMENTED(num != 0 && attributes == nullptr);
for (uint32_t i = 0; i < num; i++) {
const auto id = attributes[i].attribute_id;
}
return OK;
}