projects
/
scc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d4caa7
)
Fixed AMD64 function designator address loading
author
Robert Pengelly
<robertapengelly@hotmail.com>
Fri, 11 Sep 2026 16:48:02 +0000
(17:48 +0100)
committer
Robert Pengelly
<robertapengelly@hotmail.com>
Fri, 11 Sep 2026 16:48:02 +0000
(17:48 +0100)
amd64.c
patch
|
blob
|
history
diff --git
a/amd64.c
b/amd64.c
index 65a9ede662c4d4e63f8d85b33c6605b78300b621..9546fc886e6ef8eab3fd2ba0921e906a01e83ca5 100644
(file)
--- a/
amd64.c
+++ b/
amd64.c
@@
-26159,6
+26159,17
@@
static int amd64_emit_bare_64bit_identifier_to_rax_now (void) {
}
+ if (!sym && find_global_symbol (name) >= 0 && get_global_symbol_kind (name) == GLOBAL_SYMBOL_FUNCTION) {
+
+ emit_load_address_to_reg_now ("rax", name);
+
+ get_token ();
+ free (name);
+
+ return 1;
+
+ }
+
if (!sym && find_global_symbol (name) >= 0 && get_global_symbol_size (name) == (DATA_LLONG & 0x1f) && !get_global_symbol_floating (name)) {
emit_load_global64_to_rax (name);