BR 3392657: dwarf: leave .debug_frame empty

Until such time that we have a CFI code generator, leave .debug_frame
empty.

Reported-by: Philip Craig <philipjcraig@gmail.com>
Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
This commit is contained in:
H. Peter Anvin (Intel) 2020-06-14 23:16:50 -07:00
parent 7acbaf523c
commit a6ea1152bc

View File

@ -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;