[Nasm-bugs] [Bug 3392571] inter-section call doesn't cause error or warning

noreply-nasm at dev.nasm.us noreply-nasm at dev.nasm.us
Wed Oct 11 06:24:50 PDT 2023


https://bugzilla.nasm.us/show_bug.cgi?id=3392571

--- Comment #13 from C. Masloch <pushbx at ulukai.org> ---
This patch works for me:

nasmlist$ git diff
diff --git a/asm/listing.c b/asm/listing.c
index 186b8b4e..4e6d6176 100644
--- a/asm/listing.c
+++ b/asm/listing.c
@@ -257,6 +257,13 @@ static void list_output(const struct out_data *data)
         offset += size;
         break;
     case OUT_RELADDR:
+        /*!
+         *!out-reladdr [off] inter-section relative relocation
+         *!  warns that a relative relocation crosses a
+         *!  section boundary.
+         */
+        nasm_warn(WARN_OUT_RELADDR,
+                  "inter-section relative relocation");
        list_address(offset, "()", data->toffset, size);
        break;
     case OUT_RESERVE:

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.


More information about the Nasm-bugs mailing list