summaryrefslogtreecommitdiff
path: root/output/outelf.c
diff options
context:
space:
mode:
Diffstat (limited to 'output/outelf.c')
-rw-r--r--output/outelf.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/output/outelf.c b/output/outelf.c
index 18b52d88..8af0f120 100644
--- a/output/outelf.c
+++ b/output/outelf.c
@@ -3439,9 +3439,14 @@ static void dwarf_generate(void)
saa_free(plinesrel);
/* build frame section */
- framelen = 4;
- framebuf = pbuf = nasm_malloc(framelen);
- WRITELONG(pbuf,framelen-4); /* initial length */
+ if (0) {
+ /* This only applies if there is at least one frame defined */
+ framelen = 4;
+ framebuf = pbuf = nasm_malloc(framelen);
+ WRITELONG(pbuf,framelen-4); /* initial length */
+ } else {
+ framelen = 0;
+ }
/* build loc section */
loclen = 16;