Summary: | When exporting to object file, disallow unresolved symbols that are used as a part of an expression | ||
---|---|---|---|
Product: | RMAC | Reporter: | ggn <ggnkua> |
Component: | Core | Assignee: | Shamus Hammons <jlhamm> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | jlhamm |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Attachments: | The patches! |
Description
ggn
2022-09-27 15:23:45 CDT
Created attachment 199 [details]
The patches!
So here we go, this was apparently quite straightforward to do, just add a check during the fixups.
I tested the fix with the following source (also, regression suite passed without hiccups):
.globl external_value
.globl external_value_2
move.l #external_value,d1 ;should be ok
move.l #external_value<<11,d0 ;this should produce an error
lsl.l #8,d1
lsl.l #3,d1
move.l #external_value_2,d0 ;should be ok
Thanks for the patch! :-) |