]> Shamusworld >> Repos - rmac/blobdiff - eagen0.c
Added new optimisation option "+op" which enforces PC relative mode (#123)
[rmac] / eagen0.c
index 1d94c077cf49b8d7424f9ba1b5447daca78f2642..2df5eceea09d11eb470232e8796d48c950bca594 100644 (file)
--- a/eagen0.c
+++ b/eagen0.c
@@ -326,6 +326,10 @@ int eaNgen(WORD siz)
        case ABSL:
                if (w) // Defined
                {
+                       if (optim_pc)
+                               if (aNexattr&(DEFINED | REFERENCED | EQUATED) == DEFINED | REFERENCED)
+                                       return error("relocation not allowed");
+
                        if (tdb)
                                MarkRelocatable(cursect, sloc, tdb, MLONG, NULL);