fix(cli): resolve xrefs symbol selectors after address validation (#1209)

* fix(cli): resolve xrefs symbol selectors after address validation

* style(cli): format xrefs fallback call
This commit is contained in:
Ysopwnable
2026-10-09 13:28:48 +08:00
committed by GitHub
parent 796b65e1cd
commit 7e9c91199e
5 changed files with 417 additions and 2 deletions
+4 -1
View File
@@ -5,10 +5,13 @@
#define REA_SYMBOL(name) name
#endif
volatile int rea_xrefs_data = 17;
__attribute__((used)) volatile int rea_xrefs_unreferenced = 41;
__attribute__((noinline, used)) int rea_alias_target(void) {
__asm__ volatile(".globl " REA_SYMBOL("rea_interior") "\n"
REA_SYMBOL("rea_interior") ":");
return 17;
return rea_xrefs_data;
}
__asm__(".globl " REA_SYMBOL("rea_entry_alias") "\n"