dwarf: don't emit a dummy .debug_loc section
commiteb571a3ac387a721d52fdab448da7c8768bdaa18
authorH. Peter Anvin (Intel) <hpa@zytor.com>
Fri, 26 Jun 2020 22:22:26 +0000 (26 15:22 -0700)
committerH. Peter Anvin (Intel) <hpa@zytor.com>
Fri, 26 Jun 2020 22:22:26 +0000 (26 15:22 -0700)
tree29943f2b8658bdd40f816ac9c5631394c82bfea0
parent241697306cf0e9ee87aac4f7fe0946f436db7bfa
dwarf: don't emit a dummy .debug_loc section

It seems DWARF parsers get really snippy about a section which only
contains an end token. Instead, leave unused sections empty. Already
did that with .debug_frame, do it with .debug_loc too.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
output/outelf.c